Skip to main content
Add an authorized user to the caller’s account with specified UAC roles. The target account is always resolved from the caller’s credentials - Bearer tokens use the token’s accountId; Basic (API key) callers use the application’s configured operator account. Requires the MANAGE_SUBUSERS scope. Supports both Bearer and Basic auth. The target user must already exist in Fluz. If the user previously had a DECLINED or INACTIVE assignment, it will be reactivated with the new roles.

Arguments

String
The email address of the user to add. At least one of email or phone is required.
String
The phone number of the user to add. At least one of email or phone is required.
[UACRoleType!]!
required
The UAC roles to assign. OWNER is not allowed.
UACRoleStatusType
The initial status for the role assignment. Defaults to PENDING.
Boolean!
required
Whether auth-service should send the role assignment invite email. Defaults to true. Set to false to create the assignment without sending an invite.

Returns

AddAuthorizedUserResponse — Response returned from the addAuthorizedUser mutation.