Member

Response structure for an enterprise user

Fields

    createdAt
    String!
    Required
    Timestamp when the user was added to the enterprise
    enterpriseId
    Int!
    Required
    ID of the enterprise this user belongs to
    grantedPermissions
    [EnterprisePermission!]!
    Required

    Every permission this member holds, deduped across their roles and with wildcards expanded — the union of roles[].permissions, flattened so a client does not have to compute it.

    Named in SCREAMING_SNAKE_CASE, so the enterprise.users.view listed under roles[].permissions appears here as USERS_VIEW. Match on these values rather than on those strings.

    A permission the platform no longer recognises is left out; it grants nothing either way.

    Advisory only — the server checks again on every field this would gate.

    hasPermission
    Boolean!
    Required

    Whether this member holds permission.

    Derived from grantedPermissions, so the two can never disagree.

    Advisory only — the server checks again on every field this would gate.

    id
    Int!
    Required
    Unique identifier for the enterprise user record
    isActive
    Boolean!
    Required
    Whether the user is active in the enterprise
    roles
    [RoleInfo!]!
    Required
    List of roles assigned to this user
    updatedAt
    String!
    Required
    Timestamp when the user record was last updated
    userEmail
    String!
    Required
    Email address of the user
    userId
    Int!
    Required
    ID of the base user record
    userName
    String!
    Required
    Full name of the user
Built with