authUserId you can pass into virtual card operations to issue cards on someone else’s behalf.
Adding an authorized user does not create a Fluz user.
addAuthorizedUser looks up an existing Fluz user by email or phone and creates a role assignment for them on your account. If the person does not have a Fluz account yet, register them first with User Registration, then add them.How Access Is Scoped
The target account is always resolved from the caller’s credentials — there is no account ID parameter, and no way to manage authorized users on an account you do not control:
Every authorized user is identified by an
authUserId — the ID of the role assignment, not the user. You get it back from addAuthorizedUser and from authorizedUsers, and you pass it to removeAuthorizedUser, addVirtualCardAddress, and createVirtualCard.
Roles
Roles are assigned with theUACRoleType enum. An authorized user can hold more than one role, and the effective access is the highest of them.
Roles are set at the time you add the user. To change someone’s roles, remove the assignment and add it again with the new role set.
Status Lifecycle
Every role assignment carries aUACRoleStatusType status:
By default,
addAuthorizedUser creates the assignment as PENDING and sends an invite. If your product already handles its own consent flow, you can set status: ACTIVE and sendInvite: false to provision the user immediately with no invite and no acceptance step.
Re-adding a user whose assignment is INACTIVE or DECLINED reactivates that assignment with the new roles rather than creating a duplicate.
What You Can Do
addAuthorizedUser, authorizedUsers, and removeAuthorizedUser accept both Bearer and Basic authentication. createVirtualCard requires a Bearer token.
Issuing Cards for Authorized Users
A virtual card created withinput.authUserId is issued against the authorized user’s cardholder record — the card carries their name and returns their userId — while the card itself, its funding, and its transactions remain on your account. This is how you put a card in an employee’s or contractor’s hands without opening a separate account for them.
The full sequence is:
1
Register the user
Skip this if they already have a Fluz account. Otherwise call
registerUser.2
Add them as an authorized user
Call
addAuthorizedUser and hold on to the returned authUserId. Continue only once the status is ACTIVE.3
Save a billing address
Call
addVirtualCardAddress with the authUserId to store a billing address for that cardholder.4
Create the card
Call
createVirtualCard with input.authUserId and the returned userAddressId.Error Handling
The authorized user operations return errors in the response data, not as GraphQL errors. Always checksuccess and read the error object when it is false:
createVirtualCard behaves differently — it raises standard GraphQL errors, including VC-0020 when a billing address is still pending issuer approval. See Virtual Card Error Codes.
Requirements
Listing authorized users requires theVIEW_SUBUSERS scope. Adding and removing them requires MANAGE_SUBUSERS. Issuing a card on their behalf requires CREATE_VIRTUALCARD. Confirm your user access token carries the right scopes before calling these operations — see Application Scopes.
Want to learn more? Speak with our experts for more info or to request a demo.