🤖 For AI agents: The complete documentation index is available at /docs/llms.txt. A markdown version of this page is available at /docs/apis/groups/index.md.

Group API

A FusionAuth Group is a named object that optionally contains one to many Application Roles.

When a Group does not contain any Application Roles it can still be utilized to logically associate users. Assigning Application Roles to a group allow it to be used to dynamically manage Role assignment to registered Users. In this second scenario as long as a User is registered to an Application the Group membership will allow them to inherit the corresponding Roles from the Group.

The following APIs are provided to manage Groups and Group Membership.

OperationMethodEndpoint
Create a GroupPOST/api/group
/api/group/{groupId}
Retrieve a GroupGET/api/group
/api/group/{groupId}
Update a GroupPUT/api/group/{groupId}
Delete a GroupDELETE/api/group/{groupId}
Search for GroupsGET
POST
/api/group/search?name={name}&tenantId={tenantId}
/api/group/search
Add Users to a GroupPOST/api/group/member
Update Users in a GroupPUT/api/group/member
Remove Users from a GroupDELETE/api/group/member/{memberId}
/api/group/member?groupId={groupId}&userId={userId}
/api/group/member?groupId={groupId}
/api/group/member
Search for Group MembersGET
POST
/api/group/member/search?groupId={groupId}
/api/group/member/search