Get OPM rules

This method gets a list of the privileged commands (OPM rules) associated with this policy.

URL

  • Make sure there are no spaces in the URL.

  • The following characters are not supported in URL values: + & %

  • If the URL includes a dot (.), add a forward slash (/) at the end of the URL. For example: api/Safes/MySafe/Members/user@cyber.com/

 

 
https://<IIS_Server_Ip>/PasswordVault/WebServices/PIMServices.svc/Policy/{PolicyId}/PrivilegedCommands/

The following mandatory value is required in the URL:

Parameter

PolicyID

Type

String

Description

The ID of the policy for which the privileged commands will be listed.

Resource information

HTTP method

GET

Content type

application/json

Header parameter

Parameter

Authorization

Type

String

Description

The token that identifies the session.

Valid values

A session token that was returned from the “Logon” method.

Body parameters

 

 

 

Parameter

PolicyId

Type

text

Description

The Policy Id provided in the URL.

Valid values

Not empty

Result

 
{
"ListPolicyPrivilegedCommandsResult":
[
{"Command":"<command>",
"CommandGroup":"<true/false>",
"Id":"<number>",
"Type":"<Policy/Account>",
"IsGroup":"<true/false>",
"PermissionType":"<Allow/Deny>",
"PolicyId":"<policyID>",
"Restrictions":"<restrictions string, delimited by ;>",
"UserName":"<userName>"},
{…},
{…}
]
}

Return codes

For a complete list of return codes, see Return Codes.