Skip to content

Groups

GroupsService manages group principals.

Base path: /groups

CreateGroupPrincipal provisions a new group principal.

Request (CreateGroupPrincipalRequest)

FieldTypeDescription
namestringname: Display name for the group principal.
owner_principal_idstringowner_principal_id: The user principal who will own/administer this group.

Response (CreateGroupPrincipalResponse)

FieldTypeDescription
groupGroupPrincipalgroup: The newly created group principal and its provisioned account.

GetGroupPrincipal retrieves a group principal.

Request (GetGroupPrincipalRequest)

FieldTypeDescription
group_idstringgroup_id: The group principal ID to retrieve (grp_ prefix).

Response (GetGroupPrincipalResponse)

FieldTypeDescription
groupGroupPrincipalgroup: The requested group principal.

ListGroupPrincipals lists all group principals for the tenant.

Request (ListGroupPrincipalsRequest)

No fields.

Response (ListGroupPrincipalsResponse)

FieldTypeDescription
groupsGroupPrincipal[]groups: All group principals for the tenant, in arbitrary order.

UpdateGroupPrincipal renames a group principal.

Request (UpdateGroupPrincipalRequest)

FieldTypeDescription
group_idstring
namestringname: New display name for the group.

Response (UpdateGroupPrincipalResponse)

FieldTypeDescription
groupGroupPrincipalgroup: The updated group principal.

DeleteGroupPrincipal removes the group principal (cascade delete).

Request (DeleteGroupPrincipalRequest)

FieldTypeDescription
group_idstring

Response (DeleteGroupPrincipalResponse)

No fields.

AddGroupMember adds a user principal as a member of a group.

Request (AddGroupMemberRequest)

FieldTypeDescription
group_idstringgroup_id: The group to add the member to.
member_idstringmember_id: The principal ID to add as a member (usr_* prefix).

Response (AddGroupMemberResponse)

No fields.

RemoveGroupMember removes a user principal from a group.

Request (RemoveGroupMemberRequest)

FieldTypeDescription
group_idstringgroup_id: The group to remove the member from.
member_idstringmember_id: The principal ID to remove from the group (usr_* prefix).

Response (RemoveGroupMemberResponse)

No fields.

ListGroupMembers lists all user principals that are members of a group.

Request (ListGroupMembersRequest)

FieldTypeDescription
group_idstringgroup_id: The group whose members to list.

Response (ListGroupMembersResponse)

FieldTypeDescription
membersGroupMember[]members: All user principals that are currently members of the group.