Skip to content

ListEffectiveMembers

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

List the set of users who have access to a Resource either directly or indirectly through a team or group.

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

Set OBLIQUE_API_KEY to your API key.

  • parentstringrequired

    Name of the resource. Format: resources/{resource}, or resources/- to list across all resources.

  • pageSizeinteger (int32)

    The maximum number of members to return. This service may return fewer than this value.

  • pageTokenstring

    A page token, received from a previous ListEffectiveMembers call.

  • filterstring

    Filter that can be used to search for effective members by values other than the parent. Currently supports filtering by member.

    • member="users/{user}" or member="users/me"

    A membership no directory user has been matched to is held by the account itself, and is found under that name.

    • member="integrations/{integration}/accounts/{account}"

    A resource nested inside others is a member of each of them, so filtering by it names the resources it reaches. Note that a resource means opposite things on either side of this filter: as a member it is the nested child, as a resource it is the parent whose members are listed. Several members may be given at once, comma-separated.

    • member="resources/{resource}"
    • member="resources/{resource},resources/{resource}"

    Or by a list of resources.

    • resource="resources/{resource},resources/{resource}"

    When providing a filter, parent must be the value resources/- to indicate listing across resources.

  • showDeletedboolean

    If true, the response will include memberships in parent resources that have been deleted.

200ListEffectiveMembersResponse
  • effectiveMembersEffectiveMember[]

    The list of members that are a part of the group or 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.

  • nextPageTokenstring

    A token, which can be sent as page_token to retrieve the next page.

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