A finance team of five users needs read access to a specific subscription. You want to manage them as a unit so that adding or removing team members automatically adjusts their access.
Approach: Create a group, invite the users, add them to the group, then assign a single policy to the group.
- An access token with IAM admin permissions
- A configured tenant
- The scope URI for the subscription you want to grant access to
Cannot find OpenAPI operation by operationId or pointer
Note the subjectId from the response — you will use it as the subject in the policy.
- Mock serverhttps://developer.aritma.com/_mock/apis/platform/iam/openapi/iam-openapi/v1/invitations
curl -i -X POST \
https://developer.aritma.com/_mock/apis/platform/iam/openapi/iam-openapi/v1/invitations \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": "jane.doe@example.com",
"permissions": [
{
"action": "string",
"scope": "string"
}
],
"ttlDays": 0,
"redirectUri": "string"
}'Users become active subjects after they accept the invitation and complete registration. Repeat for each team member.
If your organization owns the email domain, you can verify it and use CreateUserSubject to add users instantly without waiting for invitation acceptance.
Cannot find OpenAPI operation by operationId or pointer
You can add multiple subject IDs in a single request.
Cannot find OpenAPI operation by operationId or pointer
Use the group's subjectId as the policy subject. All current and future members of the group inherit this policy immediately.
- To add more users to the team later, use Add members to a group
- To revoke access for the entire team, delete the policy or delete the group
- To see what the group can currently do, use View group permissions