Saltar al contenido principal

CreateAuthorizedUserInput

Input for createAuthorizedUser.

input CreateAuthorizedUserInput {
userEmail: String!
accessLevel: AuthorizedUserAccessLevel
roles: [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.

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.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