Skip to main content

Is Authorized

POST 

/user-svc/permission/:permissionId/is-authorized

Check if a user is authorized for a specific permission.

Request

Path Parameters

    permissionId stringrequired

    Permission ID

Body

Is Authorized Request

    contactsGranted string[]
    slugsGranted string[]

Responses

OK

Schema

    authorized boolean

    user

    object

    contacts

    object[]

    Contacts are used for login and identification purposes.

  • Array [

  • createdAt string
    deletedAt string
    id string

    The unique identifier, which can be a URL.

    Example values: "joe12" (singulatron username), "twitter.com/thejoe" (twitter url), "joe@joesdomain.com" (email)

    isPrimary boolean

    If this is the primary contact method

    platform string

    Platform of the contact (e.g., "email", "phone", "twitter")

    updatedAt string
    userId string
    value string

    Value is the platform local unique identifier. Ie. while the id of a Twitter contact is twitter.com/thejoe, the value will be only thejoe. For email and phones the id and the value will be the same. This field mostly exists for display purposes.

    Example values: "joe12" (singulatron username), "thejoe" (twitter username), "joe@joesdomain.com" (email)

    verified boolean

    Whether the contact is verified

  • ]

  • createdAt string
    deletedAt string
    id string
    name string

    Full name of the organization.

    passwordHash string
    slug string

    URL-friendly unique (inside the Singularon platform) identifier for the user.

    updatedAt string
Loading...