GetEffectiveMember
/api/v1/resources/{resource}/effectivemembers/{effective_member}Fetch one subject with access to a resource, whether granted directly or 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/{effective_member}"Set OBLIQUE_API_KEY to your API key.
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/resources/{resource}/effectivemembers/{effective_member}"Set OBLIQUE_API_KEY to your API key.
Path parameters
Section titled “Path parameters”namestringrequiredName of the effective member of the format
resources/{resource}/effectivemembers/{effective_member}.
Response
Section titled “Response”200EffectiveMemberAn 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}\""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.
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 |