Skip to content

GetListingRoleEffectiveSubject

GET/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.

Path parameters

  • namestringrequired

    Format: listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}

Response

200ListingRoleEffectiveSubject
  • namestring

    Assigned by Oblique. Name of the effective subject of the format listings/{listing}/roles/{role}/effectivesubjects/{effective_subject}.

  • createTimestring (date-time)read-only

    When the effective access was created.

  • updateTimestring (date-time)read-only

    When the effective access was last updated.

  • expireTimestring (date-time)read-only

    The 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-only

    The user, team, or group that has effective access to the listing role.

  • viaResourcesViaResource[]read-only
    • resourcestringread-only

      The resource that grants this access.

    • viaGroupsViaGroup[]read-only
      • groupstringread-only
      • createTimestring (date-time)read-only

        When the access via the group was granted.

      • expireTimestring (date-time)read-only

        When the access via this group expires.

      • entitlementstringread-only

        The entitlement that grants this access.

    • viaTeamsViaTeam[]read-only
      • teamstringread-only
      • createTimestring (date-time)read-only

        When the access via the team was granted.

      • expireTimestring (date-time)read-only

        When the access via the team expires.

      • entitlementstringread-only

        The entitlement that grants this access.

    • directDirectread-only
      • createTimestring (date-time)read-only

        When the direct access was granted.

      • expireTimestring (date-time)read-only

        When the direct access expires.

      • entitlementstringread-only

        The entitlement that grants this access.

    • pathsPath[]read-only

      Every 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-only

        The 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-only

          The resource this hop reaches, or the group or team the access comes through.

        • createTimestring (date-time)read-only

          When the access over this hop was granted.

        • expireTimestring (date-time)read-only

          When 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-only

          The entitlement that grants this hop. Revoking it breaks the whole path.

Errors

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