Skip to main content

check_permission

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

check_permission(
subject: ObjectSelector!
permission: PermissionSelector!
object: ObjectSelector!
): CheckPermissionResult!

Arguments

subject (ObjectSelector!)

[Required] The subject to check the permission for.

permission (PermissionSelector!)

[Required] The permission to check.

object (ObjectSelector!)

[Required] The object to check the permission on.

Type

CheckPermissionResult

Result of the check_permission query.