Project Admins

The OLP CLI supports the following:

project admin add

Adds an administrator to a project.

olp project admin add <project HRN> [command options]

Required parameters:

  • <project HRN> The HRN of the project.

Optional parameters:

  • --app <appID1 appID2 ...> The list of application IDs you want to add to the project as administrators, separated by space.
  • --user <userID1 userID2 ...> The list of user IDs you want to add to the project as administrators, separated by space.
  • --credentials <path to credentials file> The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.
  • --profile <profile name> The name of the credentials profile to use from the olpcli.ini file.
  • --quiet Display an empty output skipping additional information.

Note

You must specify at least one of these options – --app or --user.

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

Example:

Linux
Windows
olp project admin add hrn:here:authorization::myrealm:project/my-project-0000 \
   --app F9p0HU3qCqtxnZ3KnH4z --user HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3
olp project admin add hrn:here:authorization::myrealm:project/my-project-0000 ^
   --app F9p0HU3qCqtxnZ3KnH4z --user HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3

Output:


Application D0zj1n2v7EE2CdMgxtTo has been added to the project hrn:here:authorization::myrealm:project/my-project-0000 as administrator
User HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3 has been added to the project hrn:here:authorization::myrealm:project/my-project-0000 as administrator

project admin list

Retrieves all administrators of a project.


olp project admin list <project HRN> [command options]

Required parameters:

  • <project HRN> The HRN of the project.

Optional parameters:

  • --type <user|app> The type of a project administrator. If omitted, all project administrators are displayed.
  • --credentials <path to credentials file> The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.
  • --profile <profile name> The name of the credentials profile to use from the olpcli.ini file.
  • --json Display the command's result in JSON format.
  • --quiet Display administrators' HRNs, each on a new line.

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

Example:


olp project admin list hrn:here:authorization::myrealm:project/my-project-0000 --json

Output:


{"admins": [{
    "entityType": "app",
    "entityHrn": "hrn:here:account::myrealm:app/D0zj1n2v7EE2CdMgxtTo",
    "info": {
        "ownerHrn": "hrn:here:account::myrealm:user/HERE-a45335f2-9c82-4d71-b4c8-b09c4b661562",
        "clientId": "D0zj1n2v7EE2CdMgxtTo",
        "clientHrn": "hrn:here:account::myrealm:app/D0zj1n2v7EE2CdMgxtTo",
        "name": "cli-test-app",
        "realm": "hrn:here:account::myrealm:realm/myrealm",
        "ownerId": "HERE-a45335f2-9c82-4d71-b4c8-b09c4b661562"
    }
}]}

project admin remove

Removes an administrator from a project.


olp project admin remove <project HRN> [command options]

Required parameters:

  • <project HRN> The HRN of the project.

Optional parameters:

  • --app <appID1 appID2 ...> The list of application IDs you want to remove from a project as administrators, separated by space.
  • --user <userID1 userID2 ...> The list of user IDs you want to remove from a project as administrators, separated by space.
  • --credentials <path to credentials file> The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.
  • --membership Remove a membership from a project. By default, the membership is preserved.
  • --profile <profile name> The name of the credentials profile to use from the olpcli.ini file.
  • --quiet Display an empty output skipping additional information.

Note

You must specify at least one of these options - --app or --user

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

Example:

Linux
Windows
olp project admin remove hrn:here:authorization::myrealm:project/my-project-0000 \
   --app F9p0HU3qCqtxnZ3KnH4z --user HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3
olp project admin remove hrn:here:authorization::myrealm:project/my-project-0000 ^
   --app F9p0HU3qCqtxnZ3KnH4z --user HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3

Output:


Application D0zj1n2v7EE2CdMgxtTo has been removed from the project administrators for the project hrn:here:authorization::myrealm:project/my-project-0000
User HERE-05966c89-aaf1-4ae2-b0e4-3676b3f8b8c3 has been removed from the project administrators for the project hrn:here:authorization::myrealm:project/my-project-0000

results matching ""

    No results matching ""