CreateAuthorizedUserInput
Input for createAuthorizedUser.
input CreateAuthorizedUserInput {
userEmail: String!
accessLevel: AuthorizedUserAccessLevel
roles: [String!]
permissions: [String!]
storeId: ID
pointOfSaleId: ID
}
Fields
CreateAuthorizedUserInput.userEmail ● String! non-null scalar
Email of the user to invite, stored in lower case. MONEI sends an invitation email only when the email has no MONEI sign-in yet.
CreateAuthorizedUserInput.accessLevel ● AuthorizedUserAccessLevel enum
Permission level to grant. Defaults to READ_ACCESS. ADMIN_ACCESS is rejected when storeId or pointOfSaleId is set. When sent with roles, it must equal the level the roles contain. When sent with permissions, it must be READ_ACCESS, or the level of the role when the list equals the permissions of that role.
CreateAuthorizedUserInput.roles ● [String!] list scalar
Roles to grant, ids as in AuthorizedUser.roles. Must not be empty; unknown ids are rejected. With storeId or pointOfSaleId, only read_access, write_access and cashier_access are allowed.
CreateAuthorizedUserInput.permissions ● [String!] list scalar
Custom permission list to grant instead of roles, as resource:action ids. Send roles or permissions, not both. Must not be empty; unknown ids are rejected. Some permissions are given only through a role (for example credentials:read), and some need others in the same list (for example exports:create needs payments:read). A list equal to the permissions of one role is stored as that role. With storeId or pointOfSaleId, only the permissions of read_access, write_access and cashier_access are allowed.
CreateAuthorizedUserInput.storeId ● ID scalar
ID of a store of the current account. Restricts the user to that store.
CreateAuthorizedUserInput.pointOfSaleId ● ID scalar
ID of a point of sale of the current account. Restricts the user to that point of sale.
Member Of
createAuthorizedUser mutation