GetListingRoleEffectiveSubject
/api/v1/listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}Fetch one subject who holds a listing role, whether directly or through a team or group.
Example request
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://us.oblique.security/api/v1/listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}"Set OBLIQUE_API_KEY to your API key.
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}"Set OBLIQUE_API_KEY to your API key.
Path parameters
namestringrequiredFormat:
listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}
Response
200ListingRoleEffectiveSubjectnamestringAssigned by Oblique. Name of the effective subject of the format
listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}.createTimestring (date-time)read-onlyWhen the effective access was created.
updateTimestring (date-time)read-onlyWhen the effective access was last updated.
expireTimestring (date-time)read-onlyThe computed expiry of this access. This is the minimum expiry of all of the via_resources for each resource that cause the subject to be part of the listing role.
subjectstringread-onlyThe user, team, or group that has effective access to the listing role.
viaResourcesViaResource[]read-onlyresourcestringread-onlyThe resource that grants this access.
viaGroupsViaGroup[]read-onlygroupstringread-onlycreateTimestring (date-time)read-onlyWhen the access via the group was granted.
expireTimestring (date-time)read-onlyWhen the access via this group expires.
entitlementstringread-onlyThe entitlement that grants this access.
viaTeamsViaTeam[]read-onlyteamstringread-onlycreateTimestring (date-time)read-onlyWhen the access via the team was granted.
expireTimestring (date-time)read-onlyWhen the access via the team expires.
entitlementstringread-onlyThe entitlement that grants this access.
directDirectread-onlycreateTimestring (date-time)read-onlyWhen the direct access was granted.
expireTimestring (date-time)read-onlyWhen the direct access expires.
entitlementstringread-onlyThe entitlement that grants this access.
pathsPath[]read-onlyEvery path from the subject to this resource, each an ordered list of hops ending at the resource. A path can be any number of hops long when resources are nested inside each other, so this describes access that the via_groups, via_teams, and direct summaries above cannot represent, since those only name the hop closest to the subject.
partsPathPart[]read-onlyThe hops from the subject to the resource, in order. The last is always the resource itself, so a path of one hop is access held directly.
resourcestringread-onlyThe resource this hop reaches, or the group or team the access comes through.
createTimestring (date-time)read-onlyWhen the access over this hop was granted.
expireTimestring (date-time)read-onlyWhen the access over this hop expires. A path grants access only while every hop on it is live, so the path expires with its earliest hop.
entitlementstringread-onlyThe entitlement that grants this hop. Revoking it breaks the whole path.
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 |