Skip to main content
Version: Current

Groups API

Use context.Group to retrieve groups and manage group membership in the connected AI Command Center.

Choose a method​

Use GetAllGroupsAsync to retrieve the complete group list, GetGroupByNameAsync when you know the group name, or QueryAsync for paging, filtering, and sorting.

QueryAsync and GetGroupByNameAsync require the updated AI Command Center group endpoint. These APIs were verified with AICC 8.3.120.4 and Tool build 8.3.120.1. Older servers without the new endpoint cannot serve these two requests; GetAllGroupsAsync remains supported. Reference an SDK assembly that includes the required methods.

Follow Get started to configure the SDK and connection. See SDK usage for connection lifetime and error handling.

API​

Below is a list of APIs available in the group category.

APIDescription
QueryAsyncGets groups with optional paging, filtering, and sorting.
GetAllGroupsAsyncGets all groups for the current tenant.
GetGroupByNameAsyncRetrieves a group by name.
GetUsersAsyncGets the list of users associated with the specified group using the group ID.
GetUsersByNameAsyncGets the list of users associated with the specified group using the group name.
AddUsersIntoGroupAsyncAdds one or more users to the specified group.
RemoveUserFromGroupAsyncRemoves one or more users from the specified group.

Models​

Below is a list of data models used by the group APIs.

ModelDescription
QueryOptionsShared paging, filter, and sort options used by query APIs.
GetGroupResponseRepresents a group returned by the group query APIs.
AddUserResponseContains information about users who were successfully added to the group.
RemoveUserResponseContains information about users who were successfully removed from the group.
UserAddedResponseContains details about a user who was successfully added to the group.
UserRemovedResponseContains details about a user who was successfully removed from the group.
UserAddRemoveFailedResponseProvides information about users who could not be added to or removed from the group.
UserRepresents a user entity associated with a group.