Updates a specific group.
57645
The ID of the group.
id,type,name
A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.
Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.
"Customer Support Group - as imported from Active Directory"
255
A human readable description of the group.
AD:123456
An arbitrary identifier that can be used by external group sync tools to link this Box Group to an external group.
Example values of this field could be an Active Directory Object ID or a Google Group ID.
We recommend you use of this field in order to avoid issues when group names are updated in either Box or external systems.
admins_only
Specifies who can invite the group to collaborate on folders.
When set to admins_only
the enterprise admin, co-admins,
and the group's admin can invite the group.
When set to admins_and_members
all the admins listed
above and group members can invite the group.
When set to all_managed_users
all managed users in the
enterprise can invite the group.
Value is one of admins_only
,admins_and_members
,all_managed_users
admins_only
Specifies who can see the members of the group.
admins_only
- the enterprise admin, co-admins, group's
group adminadmins_and_members
- all admins and group membersall_managed_users
- all managed users in the
enterpriseValue is one of admins_only
,admins_and_members
,all_managed_users
Customer Support
The name of the new group to be created. Must be unique within the enterprise.
Active Directory
255
Keeps track of which external source this group is
coming, for example Active Directory
, or Okta
.
Setting this will also prevent Box admins from editing the group name and its members directly via the Box web application.
This is desirable for one-way syncing of groups.
Returns the updated group object.
Returns an error a conflict is stopping the group from being created.
invalid_parameter
: Often returned if the group name is not unique in
the enterprise.An unexpected client error.
curl -X PUT https://api.box.com/2.0/groups/57645 \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
-H 'Content-Type: application/json" '
-d '{
"name": "Customer Support"
}'
var updates = new BoxGroupRequest()
{
Name = "New group name"
};
BoxGroup updatedGroup = await client.GroupsManager.UpdateAsync("11111", updates);
BoxGroup group = new BoxGroup(api, id);
BoxGroup.Info groupInfo = group.getInfo();
groupInfo.addPendingChange("name", "New name for My Group");
group.updateInfo(groupInfo);
group_update = {'name': 'New Group Name'}
updated_group = client.group(group_id='11111').update_info(group_update)
print('Changed the name of group {0} to "{1}"'.format(updated_group.id, updated_group.name))
client.groups.update('11111', {name: 'New group name'})
.then(group => {
/* group -> {
type: 'group',
id: '11111',
name: 'New group name',
created_at: '2014-09-15T13:15:35-07:00',
modified_at: '2014-09-16T13:15:35-07:00' }
*/
});
client.groups.update(groupId: "11111", name: "Team A", provenance: .value("Test"), externalSyncIdentifier: .value("Test Sync"), description: .value("Test Description"), invitabilityLevel: .allManagedUsers, memberViewabilityLevel: .allManagedUsers) {
(result: Result<Group, BoxSDKError>) in
guard case let .success(group) = result else {
print("Error updating the group")
return
}
print("Group \(group.name) was updated with description: \(group.description)")
}