Add a user to a group with automatic user creation and authorization checks.
Authorization: Users can add members to groups they have permission to manage. Permissions are checked via Cerbos policies.
Auto-Creation: If the user being added doesn’t exist in the system, they will be automatically created with their CPF as the identifier.
Member Identification: Users are identified by their CPF (Brazilian tax ID), which serves as the unique subject identifier.
Use Cases:
Role Inheritance: Users automatically inherit all roles assigned to groups they’re members of.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for adding a member to a group.
User's CPF (Brazilian tax ID) to add to the group
"12345678901"
Member added to group successfully