Skip to content

BatchGetEntitlements

GET/api/v1/entitlements:batchGet

Translate entitlement names entitlements/{id} to a set of entitlements.

curl \
-H "Authorization: Bearer ${OBLIQUE_API_KEY}" \
"https://us.oblique.security/api/v1/entitlements:batchGet?names=string"

Set OBLIQUE_API_KEY to your API key.

  • namesstring[]required

    Name of the entitlement of the format entitlements/{id}.

200BatchGetEntitlementsResponse
  • entitlementsEntitlement[]

    The requested entitlements.

    • namestring

      Assigned by Oblique. Name of the entitlement of the format entitlements/{entitlement}.

    • resourcestringrequired

      Set once, when the resource is created. The resource that this entitlement grants access to.

      Format: resources/{resource}

    • subjectstringrequired

      Set once, when the resource is created. The subject that is granted access to the resource. A new entitlement names a team, group, an account in an integration, or another resource. It names a user only when the user has no account in the integration owning the resource, and the access is actuated once they have one. A user may also be read back from an entitlement recorded before access moved to accounts.

      An account subject grants the access to that account rather than to the directory user behind that account. The account must belong to the same integration as the resource.

      A resource subject represents a nested membership in the system that owns both resources, such as a Google group that is a member of another Google group. Both resources must come from the same integration, and the system must support that pairing: a Google group nests in a Google group, an Okta group in an Okta app, and a GitHub team in a GitHub team. A resource can’t be a member of itself.

      Format: teams/{team}, groups/{group}, integrations/{integration}/accounts/{account}, resources/{resource}, or users/{user}

    • rolesRole[]

      The roles the subject holds on the resource. A resource can grant a subject more than one role at once, such as a Cloudflare policy that carries several permission groups.

      A subject holding the system’s default role has that role recorded explicitly, so an empty list means the roles are unknown rather than that the subject holds no roles.

      • displayNamestringrequired

        The role’s name, as named by the system that owns the resource. For example, a Google group membership is MEMBER, MANAGER, or OWNER, and a Cloudflare permission group has a name such as “OAuth App Registrations Read”.

        Every system names its roles differently, so values are recorded verbatim. A role granted through the API must have an id the integration reports for the kind of the resource, when it reports any; one recorded from the integration is stored as reported.

      • idstringrequired

        The identifier the system that owns the resource uses for this role. Opaque to Oblique, and the same as display_name for a system that names a role only one way.

      • rolestringread-only

        The role in the integration’s role catalog, of the format integrations/{integration}/roles/{role}, matched on id and the kind of the resource. Its display name is the role’s name as the system names it now. Not set when the catalog doesn’t list the role.

    • One of

      • expireTimestring (date-time)

        If present, when this access expires. This field is always provided on output.

    • createTimestring (date-time)read-only

      Create and update timestamps.

    • updateTimestring (date-time)read-only
    • importedboolean

      Set once, when the resource is created. When true, this boolean indicates this entitlement was “imported” from a syncing process, such as reading data from Okta or Google Groups. User created entitlements will always cause this field to be false or unset.

    • requeststringread-only

      If present, the request that most recently created or updated this entitlement.

      Format: requests/{request}

    • statusEntitlementStatusread-only

      The progress of background work on this entitlement.

      • actionUpdateTimestring (date-time)read-only

        When this entitlement was created, or the last time its roles changed.

        If this entitlement is the result of a change in Oblique, it may not have been actuated to a remote system yet. See sync_action_update_time.

      • syncActionUpdateTimestring (date-time)read-only

        The action_update_time when this entitlement was last observed to be in-sync with the remote system.

        For imported entitlements, this will always match action_update_time, since Oblique observes the remote state at the same time it creates the entitlement.

        For entitlements written to external systems, this is the action_update_time for the entitlement that was acted on.

        sync_action_update_time is either older than action_update_time, indicating an entitlement hasn’t been pushed yet. Or equivalent to action_update_time when an entitlement has been reconciled.

      • statestringread-only
        Allowed values: SYNCING, ACTIVE

        Whether the system owning the resource holds every membership this entitlement grants. An entitlement that grants access to several members, such as one for a team or group, is SYNCING while any of them is being added or removed, and ACTIVE once they all hold the access.

      • memberErrorsMemberError[]read-only

        The errors keeping memberships this entitlement grants from being actuated, with how many members each affects. Empty when every membership can be actuated.

        • errorstringread-only
          Allowed values: ACCOUNT_MISSING
        • memberCountinteger (int32)read-only

          The number of members whose membership the error keeps from being actuated.

StatusMeaning
400Malformed request
401Missing or invalid API key
403Not allowed for this API key
404Not found
429Too many requests
500Internal server error