Skip to main content

currentUserPermissionOnCustomers

This query returns the list of customers for which the current user has the permission given by permissionName. E.g. to get the list of customer for which the current user has the permission 'SYSTEM_VIEW' the query would look like:

query { currentUserPermissionOnCustomers(permissionName:'SYSTEM_VIEW') { id label } }

If the permission is invalid an error will be returned.

currentUserPermissionOnCustomers(
permissionName: String!
indent: Boolean = true
showRootCustomer: Boolean = false
inContextOfCustomerId: ID
): [CustomerReference!]!

Arguments

currentUserPermissionOnCustomers.permissionName ● String! non-null scalar

currentUserPermissionOnCustomers.indent ● Boolean scalar

Whether to indent the labels according to the nesting level.

currentUserPermissionOnCustomers.showRootCustomer ● Boolean scalar

Show the root customer?

currentUserPermissionOnCustomers.inContextOfCustomerId ● ID scalar

If the field should only return customers reachable from the given specific context customer set this ID.

Type

CustomerReference object