Saltar al contenido principal

UpdateAuthorizedUserInput

Input for updateAuthorizedUser.

input UpdateAuthorizedUserInput {
userEmail: String!
accessLevel: AuthorizedUserAccessLevel
roles: [String!]
storeId: ID
pointOfSaleId: ID
}

Fields​

UpdateAuthorizedUserInput.userEmail ● String! non-null scalar​

Email of the user to update. Identifies the existing record.

UpdateAuthorizedUserInput.accessLevel ● AuthorizedUserAccessLevel enum​

New permission level. ADMIN_ACCESS is rejected when storeId or pointOfSaleId is set. Sending only the level the current roles already contain keeps the roles; another level replaces them with the role of that level. When sent with roles, it must equal the level the roles contain. Send roles to change the roles.

UpdateAuthorizedUserInput.roles ● [String!] list scalar​

New roles, ids as in AuthorizedUser.roles. Must not be empty; unknown ids are rejected. Replaces the current roles. With storeId or pointOfSaleId, only read_access, write_access and cashier_access are allowed.

UpdateAuthorizedUserInput.storeId ● ID scalar​

ID of a store of the current account. Restricts the user to that store. Pass null to clear. Omit to keep.

UpdateAuthorizedUserInput.pointOfSaleId ● ID scalar​

ID of a point of sale of the current account. Restricts the user to that point of sale. Pass null to clear. Omit to keep.

Member Of​

updateAuthorizedUser mutation