Magidoc

currentUserPermissionOnCustomers
Query

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.

Arguments

#

permissionName

Non-null

indent = true

Whether to indent the labels according to the nesting level.

showRootCustomer

Show the root customer?

inContextOfCustomerId

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

Response

#

Returns [ CustomerReference !]!.

Example

#