Add discovered accounts
This method adds newly discovered accounts and their dependencies.
-
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/
Action |
Description |
---|---|
Discovered account |
Discovered accounts are added to the Pending Accounts list. |
Discovered dependency |
Discovered dependencies are added to the Pending Accounts list or are automatically added to the corresponding master account that has already been onboarded. |
Automatic onboarding |
Discovered accounts are onboarded according to matching onboarding rules. If automatic onboarding fails for any reason, the account is added to the Pending Accounts list. |
The user who runs this web service requires the following users and permissions:
To add pending accounts:
-
User: Owner of PasswordManager_Pending Safe
-
Permissions:
-
Add account
-
List files
-
Update account properties
-
To onboard the account:
-
User: Owner of the target Safe of the onboarding rule.
-
Permissions:
-
Add account
-
Update account properties
-
Initiate CPM account management operations
-
URL
|
|
Resource information
HTTP method |
POST |
Content type |
application/json |
Header parameter
Parameter |
Description |
---|---|
Authorization |
The token that identifies the session, encoded in BASE 64. See Authentication. Type: String Mandatory: Yes Default value: None |
Body parameters
Windows account
|
AWS accounts
|
Azure account
|
Parameter |
userName |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The name of the account user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
address |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The name or address of the machine where the account is located. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Machine name or address |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
discoveryDateTime |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Int |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The date the account was discovered. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Default value |
Current time |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Unix time |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
accountEnabled |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Boolean |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The state of the account, defined in the discovery source. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
True / False |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
osGroups |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The name of the group the account belongs to, such as Administrators or Operators. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Group name |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
platformType |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The platform where the discovered account is located. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
One of the following:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
domain |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The domain of the account. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Domain name |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
lastLogonDateTime |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Int |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The date this account was last logged into, defined in the discovery source. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Unix time |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
lastPasswordSetDateTime |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Int |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The date this password was last set, defined in the discovery source. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Unix time |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
passwordNeverExpires |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Boolean |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
Whether or not this password expires, defined in the discovery source. If this parameter is not set, it is considered null. This attribute cannot be set if passwordExpirationDateTime is specified. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
True / False |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
osVersion |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The version of the OS where the account was discovered. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Operating system |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
privileged |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Enum |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
Whether the discovered account is privileged or non-privileged. If this parameter is not set, it is considered null. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Privileged / Non-privileged |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
privilegedCriteria |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The criteria that determines whether or not the discovered account is privileged. For example, the user or group name. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
String. Separate multiple strings with ";". |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
userDisplayName |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The user's display name. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Username |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
A description of the account, defined in the discovery source. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
passwordExpirationDateTime |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Int |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The expiration date of the account, defined in the discovery source. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Unix time |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
osFamily |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The type of machine where the account was discovered. If this parameter is not set, it is considered null and will not be returned in the result. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
Workstation/Server |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
additionalProperties |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
List of name=value pairs |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
List of name=value pairs for additional properties added to the account. This is an open list that is not validated. The list of properties should be valid file properties in the Vault. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
organizationalUnit |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
String |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
The organizational unit where the account is defined. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
OU |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameter |
platformTypeAccountProperties |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type |
Int |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description |
Object containing key-value pairs to associate with the account, as defined by the account platform type schema. Only properties that appear in the platform type schema are allowed. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mandatory |
For UnixSSHKey, AWS, and AWS Access Keys |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Valid values |
According to the platform type schema |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Windows
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Unix
Unix SSH Keys
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AWS
AWS Access Keys
Azure Password Management
Dependencies
|
Result
Windows account
|
Parameter |
id |
Type |
Number |
Description |
The ID of the onboarded or pending account. |
Valid values |
Valid account ID |
Parameter |
status |
Type |
Enum |
Description |
The status of the account. |
Valid values |
Possible values are:
|
Dependencies |
|
Parameter |
id |
Description |
The ID of the onboarded or pending dependency. |
Valid values |
Number |
Parameter |
status |
Description |
The status of the dependency. Possible values are:
|
Valid values |
Enum |
Parameter |
type |
Description |
The dependency type. |
Valid values |
String |
Parameter |
name |
Description |
The dependency name. |
Valid values |
String |
Parameter |
address |
Description |
The dependency address. |
Valid values |
String |
Parameter |
failureReason |
Description |
The reason why onboarding failed. This is only relevant if the status indicates that onboarding failed. |
Valid values |
String |
Return codes
For a complete list of return codes, see Return Codes.