קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שירות הגדרות הקבוצות של Admin SDK מאפשר לכם להשתמש ב-Groups Settings API של Admin SDK ב-Apps Script. ממשק ה-API הזה מאפשר לאדמינים בדומיינים של Google Workspace (כולל משווקים) לנהל את הגדרות הקבוצות בחשבון Google Workspace שלהם.
חומרי עזר
מידע מפורט על השירות הזה זמין במאמרי העזרה של Admin SDK Groups Settings API. בדומה לכל השירותים המתקדמים ב-Apps Script, שירות ההגדרות של קבוצות Admin SDK משתמש באותם אובייקטים, שיטות ופרמטרים כמו ה-API הציבורי. מידע נוסף זמין במאמר איך נקבעות חתימות של שיטות.
/** * Gets a group's settings and logs them to the console. */functiongetGroupSettings(){// TODO (developer) - Replace groupId value with yoursconstgroupId='exampleGroup@example.com';try{constgroup=AdminGroupsSettings.Groups.get(groupId);console.log(JSON.stringify(group,null,2));}catch(err){// TODO (developer)- Handle exception from the APIconsole.log('Failed with error %s',err.message);}}
עדכון ההגדרות של קבוצה
בדוגמה הזו מוצג איך אפשר לשנות את ההגדרות של קבוצה. בדוגמה הזו, התיאור משתנה, אבל אפשר לשנות באותו אופן גם הגדרות אחרות.
/** * Updates group's settings. Here, the description is modified, but various * other settings can be changed in the same way. * @see https://developers.google.com/admin-sdk/groups-settings/v1/reference/groups/patch */functionupdateGroupSettings(){constgroupId='exampleGroup@example.com';try{constgroup=AdminGroupsSettings.newGroups();group.description='Newly changed group description';AdminGroupsSettings.Groups.patch(group,groupId);}catch(err){// TODO (developer)- Handle exception from the APIconsole.log('Failed with error %s',err.message);}}
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-10-14 (שעון UTC)."],[],[]]