Skip to content

GetEffectiveMember

GET/api/v1/resources/{resource}/effectivemembers/{effective_member}

Fetch one subject with access to a resource, whether granted directly or through a team or group.

curl \
-H "Authorization: Bearer ${OBLIQUE_API_KEY}" \
"https://us.oblique.security/api/v1/resources/{resource}/effectivemembers/{effective_member}"

Set OBLIQUE_API_KEY to your API key.

  • namestringrequired

    Name of the effective member of the format resources/{resource}/effectivemembers/{effective_member}.

200EffectiveMember

An effective member is a computed child of a given group and the set of users that are granted access to resources. Effective members are computed internally by the server and can’t be modified directly.

When a user’s access is removed, the effective member switches to tracking the deletion process for the external system. Use status.state to determine if the membership represents access that’s active, being created, or being deleted.

The effective members API is used to display relational data between users and the resource they have access to. It SHOULD NOT be used to determine the set of users who have access to a resource. Use ListUsers with a filter for the specific resource instead.

filter: "resource=\"resources/{resource}\""
  • namestring

    Assigned by Oblique. Name of the effective member of the format resources/{resource}/effectivemembers/{effective_member}.

  • createTimestring (date-time)read-only

    Create and update timestamps.

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

    The computed expiry of this membership. This is the maximum expiry of all of the paths that cause a user to be part of a resource or group. For example if a user is part of two groups that cause them to be part of a resource, one that expires at t1 and another that expires at t2, this will be t2 = max(t1, t2).

  • memberstringread-only

    The user, account, or resource that is a computed member of the group or resource.

    A member is a user, users/{user}, whenever Oblique knows whose access it is. Someone who holds a resource through several accounts is a single member, with one path per account.

    A member is an account, integrations/{integration}/accounts/{account}, when the account matches no directory user.

    A member is a resource when that resource is nested inside this one and so holds it in its own right, alongside the members it carries here. Listing by such a member is how to ask what a resource itself has access to. A resource is never a member of itself, however long a path of nestings leads back to the resource.

    Format: users/{user}, integrations/{integration}/accounts/{account}, or resources/{resource}

  • pathsPath[]read-only

    Set of paths that cause a member to be part of a group or resource.

    • partsPathPart[]read-only

      The set of parts, starting closest to the user, that causes them to be part of a resource. The last item is always the resource itself.

      For example:

      • “groups/frontend”
      • “resources/github”

      Or:

      • “teams/engineering”
      • “resources/github”

      A path crosses a hop per nesting, so it can be longer than two:

      • “groups/frontend”
      • “resources/eng-google”
      • “resources/engineering-all”
      • resourcestringread-only

        The API object name. This can either be a team, group, or resource.

      • createTimestring (date-time)read-only

        When the membership or entitlement that caused this part was created.

      • expireTimestring (date-time)read-only

        The expiry of this membership or entitlement.

      • entitlementstringread-only

        The entitlement that grants this hop. A path through nested resources crosses one entitlement per hop, so this is what identifies the path: two paths over the same resources are different paths when a hop is granted by a different entitlement. Revoking any one of them breaks the whole path.

        Membership of a team or group isn’t an entitlement, so the part for the hop from a user to a team or group names the entitlement from that team or group to the next resource instead.

        Format: entitlements/{entitlement}

    • entitlementstringread-only

      The entitlement that grants the last hop of this path. Its subject is the user, one of their accounts, a group or team they belong to, or a resource nested inside this one. Each earlier hop names the entitlement that grants it, so a path through nesting crosses several.

    • rolesRole[]read-only

      The set of roles on this entitlement. Note that for nested resources, this only represents roles on the final resource. If the path represents:

      User --(owner)--> GitHub Team --(member)--> GitHub Repo

      Only “member” is reported, not “owner”.

      • displayNamestringread-only
      • idstringread-only
  • rolesHeldRole[]read-only

    The roles the member holds on the resource, sorted by ID. A role is held through a path when the path’s last hop grants it, and lasts as long as the longest-lived such path. This covers every path, including any left out of paths.

    • displayNamestringread-only

      The role’s name as the integration shows it.

    • idstringread-only

      The role’s identifier in the integration.

    • expireTimestring (date-time)read-only

      When the member’s hold on the role ends: the latest expiry among the paths that grant the role. Unset when the role does not expire.

  • syncTimestring (date-time)read-only

    The last time this membership was actuated to an external system or generated an audit event. This is meant to display to the user when the last run was, and is written after a user is added or removed to/from an external group.

  • statusEffectiveMemberStatusread-only

    The progress of background work on this membership.

    • statestringread-only
      Allowed values: CREATING, ACTIVE, DELETING

      An effective member tracks memberships that are active or waiting for an external system to be updated (both creation and deletion). This field indicates which of those the membership is in.

    • errorstringread-only
      Allowed values: ACCOUNT_MISSING

      Why the membership can’t be actuated to the external system, if anything prevents it. Unset when nothing does.

    • errorDescriptionstringread-only

      A human readable description of the error. Empty when error is unset.

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