GuidesChangelogData Inspector Library API Reference
Guides

role assignment entity

role assignment entity

The OLP CLI supports the following functionality for role assignment entity listing:

  • list role assignment entities

role assignment entity list

Retrieves list of entities assigned with a role in the realm.

olp role assignment entity list <role HRN/role name> [command options]

Required parameters:

  • <role HRN/role name> Either HRN or name of a role.

Optional parameters:

  • --entity-type <application or user> Type of entity. If not specified all types of entities are returned.
  • --credentials <path to credentials file> The name of a credentials file to use with the command. Credentials files are downloaded separately from the HERE platform portal.
  • --profile <profile name> The name of the credentials profile to use from the olpcli.ini file.
  • --json Displays the command result in JSON format.
  • --quiet Displays a list of entity HRNs with no additional information.

For more information on using credentials and profiles, see Credentials setup.

Example:

The command below lists entities assigned with a role:

olp role assignment entity list hrn:here:authorization::org:role/ROLE-1234

Output:

entity HRN                                                                                      name
hrn:here:account::org:app/VbuUq1SPowBl2mTuZelu                                CLI Test App
hrn:here:account::org:user/HERE-fcf838ac-a569-4823-bc54-c555e20f8c66          David Boon