Yönetici SDK'sı Grup Ayarları Hizmeti
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Admin SDK Groups Settings hizmeti, Google Apps Komut Dosyası'nda Admin SDK'nın Groups Settings API'sini kullanmanıza olanak tanır. Bu API, Google Workspace alanlarının yöneticilerine (bayiler dahil) Google Workspace hesaplarındaki grupların grup ayarlarını yönetme olanağı tanır.
Bu hizmet hakkında ayrıntılı bilgi için Yönetici SDK'sı Grupları Ayarları API'si referans belgelerine bakın. Apps Komut Dosyası'ndaki tüm gelişmiş hizmetler gibi, Yönetici SDK'sı Gruplar Ayar Hizmetleri hizmeti de genel API ile aynı nesneleri, yöntemleri ve parametreleri kullanır. Daha fazla bilgi için Yöntem imzaları nasıl belirlenir? başlıklı makaleyi inceleyin.
/** * 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);}}
Grup ayarlarını güncelleme
Bu örnekte, bir grubun ayarlarının nasıl değiştirilebileceği gösterilmektedir. Burada açıklama değiştirilmiştir ancak diğer çeşitli ayarlar da aynı şekilde değiştirilebilir.
/** * 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);}}
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2026-05-05 UTC."],[],[]]