Skip to content

Retrieve an attribute option

Request

OPA roles:
  • security_admin

Retrieves the attribute range option for the specified namespace and attribute

Security
bearerAuth
Path
team_namestringrequired

The name of your team

namespacestringrequired

Namespace for the attribute option. Valid values are user or group.

attribute_namestringrequired

Attribute name. Valid values:

  • unix_uid, unix_gid (for user namespace)
  • unix_gid (for group namespace)
Query
exclude_defaultsboolean

Specify true to return the non-default option. If only the default option exists, an HTTP 404 error is returned. Specify false to return any option available, including the default option.

Default:false
curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/attributes/options/{namespace}/{attribute_name}?exclude_defaults=false' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
attribute_namestringrequired

The attribute name. Valid values:

  • unix_uid, unix_gid (for user namespace)
  • unix_gid (for group namespace)
Enum:"unix_uid""unix_gid"
Example:"unix_uid"
detailsobject(AttributeOptionDetails)required

Attribute option details (the range for UID or GID attributes)

namespacestringrequired

Namespace for the attribute option. Valid values are user or group.

Enum:"user""group"
Example:"user"
team_idstring, (uuid)read-only

The team that the attribute option belongs to

updated_atstring, (date-time)

Timestamp of when the attribute option was last updated

Response
{ "attribute_name": "unix_uid", "details": { "max": 1001, "min": 1001 }, "namespace": "user", "team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba", "updated_at": "2019-08-24T14:15:22Z" }