GlobalPermission
Permission associated with a set of users. Can have NodePermissions to grant permissions on specific Nodes. READ is granted if the global admin is granted.
type GlobalPermission implements BaseNode, BasePermission, Named, NamedNode, Node {
allUsers: Boolean!
description: String!
entries: [PermissionEntry!]!
hasPermission(
permission: AllPermissionEntry
): Boolean!
id: ID!
name: String!
users(
after: String
before: String
filter: GropiusUserFilterInput
first: Int
last: Int
orderBy: [GropiusUserOrder!]
skip: Int
): GropiusUserConnection!
}
Fields
GlobalPermission.allUsers
● Boolean!
non-null scalar
If, the permission is granted to all users. Use with caution.
GlobalPermission.description
● String!
non-null scalar
The description of this entity.
GlobalPermission.entries
● [PermissionEntry!]!
non-null enum
All permissions this Permission grants
GlobalPermission.hasPermission
● Boolean!
non-null scalar
Checks if the current user has a specific permission on this Node
GlobalPermission.hasPermission.permission
●AllPermissionEntry
enumThe permission to check for
GlobalPermission.id
● ID!
non-null scalar
The unique id of this node
GlobalPermission.name
● String!
non-null scalar
The name of this entity.
GlobalPermission.users
● GropiusUserConnection!
non-null object
GropiusUsers granted this Permission
GlobalPermission.users.after
●String
scalarGet only items after the cursor
GlobalPermission.users.before
● String
scalar
Get only items before the cursor
GlobalPermission.users.filter
● GropiusUserFilterInput
input
Filter for specific items in the connection
GlobalPermission.users.first
● Int
scalar
Get the first n items. Must not be used if before is specified
GlobalPermission.users.last
● Int
scalar
Get the last n items. Must not be used if after is specified
GlobalPermission.users.orderBy
● [GropiusUserOrder!]
list input
Order in which the items are sorted
GlobalPermission.users.skip
● Int
scalar
Skips n items. First or last MUST be specified, is otherwise ignored
Interfaces
BaseNode
interface
Shared extensions to the node type.
BasePermission
interface
Named
interface
Entity with a name and a description.
NamedNode
interface
Node with a name and description
Node
interface
Base class of all nodes
Returned by
searchGlobalPermissions
query
Member of
CreateGlobalPermissionPayload
object ● GlobalPermissionConnection
object ● GlobalPermissionEdge
object ● UpdateGlobalPermissionPayload
object