ListEffectiveMembers
/api/v1/resources/{resource}/effectivemembersList the set of users who have access to a Resource either directly or indirectly through a team or group.
Example request
Section titled “Example request”curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://us.oblique.security/api/v1/resources/{resource}/effectivemembers"Set OBLIQUE_API_KEY to your API key.
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/resources/{resource}/effectivemembers"Set OBLIQUE_API_KEY to your API key.
Path parameters
Section titled “Path parameters”parentstringrequiredName of the resource. Format:
resources/{resource}, orresources/-to list across all resources.
Query parameters
Section titled “Query parameters”pageSizeinteger (int32)The maximum number of members to return. This service may return fewer than this value.
pageTokenstringA page token, received from a previous
ListEffectiveMemberscall.filterstringFilter that can be used to search for effective members by values other than the parent. Currently supports filtering by member.
member="users/{user}"ormember="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.showDeletedbooleanIf true, the response will include memberships in parent resources that have been deleted.
Response
Section titled “Response”200ListEffectiveMembersResponseeffectiveMembersEffectiveMember[]The list of members that are a part of the group or resource.
namestringAssigned by Oblique. Name of the effective member of the format
resources/{resource}/effectivemembers/{effective_member}.createTimestring (date-time)read-onlyCreate and update timestamps.
updateTimestring (date-time)read-onlyexpireTimestring (date-time)read-onlyThe 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-onlyThe 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}, orresources/{resource}pathsPath[]read-onlySet of paths that cause a member to be part of a group or resource.
partsPathPart[]read-onlyThe 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-onlyThe API object name. This can either be a team, group, or resource.
createTimestring (date-time)read-onlyWhen the membership or entitlement that caused this part was created.
expireTimestring (date-time)read-onlyThe expiry of this membership or entitlement.
entitlementstringread-onlyThe 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-onlyThe 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-onlyThe 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 RepoOnly “member” is reported, not “owner”.
displayNamestringread-onlyidstringread-only
rolesHeldRole[]read-onlyThe 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-onlyThe role’s name as the integration shows it.
idstringread-onlyThe role’s identifier in the integration.
expireTimestring (date-time)read-onlyWhen 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-onlyThe 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-onlyThe progress of background work on this membership.
statestringread-onlyAn 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-onlyWhy the membership can’t be actuated to the external system, if anything prevents it. Unset when nothing does.
errorDescriptionstringread-onlyA human readable description of the error. Empty when error is unset.
nextPageTokenstringA token, which can be sent as
page_tokento retrieve the next page.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 | Malformed request |
401 | Missing or invalid API key |
403 | Not allowed for this API key |
404 | Not found |
429 | Too many requests |
500 | Internal server error |