Skip to main content

checkPermission

Checks if a subject has a given permission on an object.

checkPermission(
subject: ObjectSelector!
permission: String!
object: ObjectSelector!
): CheckPermissionResult!

Arguments

checkPermission.subject ● ObjectSelector! non-null input objects

[Required] The subject to check the permission for.

checkPermission.permission ● String! non-null scalar common

[Required] The permission to check.

checkPermission.object ● ObjectSelector! non-null input objects

[Required] The object to check the permission on.

Type

CheckPermissionResult object permissions

Result of the check_permission query.