Get Account Details
POST/getAccounts
This method returns a List
of "Accounts" in SSM.
The Authorization
must have Bearer
followed by Token
.
Optional params: username
, endpoint
, max
, offset
, accountQuery
, advsearchcriteria
- accountKey,description,comments,accounttype,status,customproperty1-customproperty56,accountID,displayName,name,creator (username),updateuser (username),validfromDate validthrough,createdon,lastlogondate,lastpasswordchange,updatedate,orphan (true/false), accountowner - with fields 1. type - user/ usergroup (mandatory), 2. value - username/ usergroup name (mandatory), 3. rank - 1 to 5 (optional)
Sample - "advsearchcriteria":{ "status":"ACTIVE","name":"john*","createdon":"2016-12-13","customproperty12":"*Ro*","orphan":"true","accountowner": [ { "type": "user", "value": "janedoe", "rank": "1" } ]},
Date can be searched with 'yyyy-MM-dd', dates and boolean are exact match.
Note: Any OR conditions must be used within parenthesis. For example:
{ "accountQuery":"(acc.status='1' or acc.comments like '%a%')", "username":"admin" }
Request
- application/json
Body
Array [
]
advsearchcriteria
object
accountowner
object[]
Responses
- 200
Get Account Details
Response Headers
Access-Control-Allow-Credentials
string
Access-Control-Allow-Origin
string
Cache-Control
string
Date
string
Expires
string
Referrer-Policy
string
Server
string
Set-Cookie
string
Strict-Transport-Security
string
X-Content-Type-Options
string
X-Frame-Options
string
- application/json
- Schema
- Example (from schema)
- Get Account Details
Schema
Array [
Array [
]
]
Accountdetails
object[]
accountowner
object[]
{
"Accountdetails": [
{
"accountID": "CN=svcIT62341,OU=SaviyntPoC,DC=corpAD,DC=saviynt,DC=com",
"accountKey": 541341,
"accountclass": "top,person,organizationalPerson,user",
"accountowner": [
{
"rank": 1,
"type": "user",
"value": "admin"
},
{
"rank": 26,
"type": "user",
"value": "allisonadowner"
}
],
"accounttype": "Service Account",
"comments": "Created as per request - 2430001",
"createdon": "07/10/2020",
"creator": "System created",
"customproperty1": "svcIT62341",
"customproperty11": "12717263",
"customproperty19": "0",
"customproperty2": "svcIT62341",
"customproperty20": "svcIT62341@saviynt.com",
"customproperty26": "CN=svcIT62341,OU=SaviyntPoC,DC=corpAD,DC=saviynt,DC=com",
"customproperty3": "AdminUser",
"customproperty30": "512",
"customproperty6": "svcIT62341",
"customproperty7": "Saviynt",
"endpoint": "SaviyntAD",
"endpointKey": 760,
"lastpasswordchange": "07/10/2020",
"name": "svcIT62341",
"status": "1",
"updatedate": "07/10/2020",
"userKey": "",
"username": ""
}
],
"displaycount": 1,
"errorCode": "0",
"msg": "Successful",
"total": 1
}
{
"Accountdetails": [
{
"accountID": "CN=svcIT62341,OU=SaviyntPoC,DC=corpAD,DC=saviynt,DC=com",
"accountKey": 541341,
"accountclass": "top,person,organizationalPerson,user",
"accountowner": [
{
"rank": 1,
"type": "user",
"value": "admin"
},
{
"rank": 26,
"type": "user",
"value": "allisonadowner"
}
],
"accounttype": "Service Account",
"comments": "Created as per request - 2430001",
"createdon": "07/10/2020",
"creator": "System created",
"customproperty1": "svcIT62341",
"customproperty11": "12717263",
"customproperty19": "0",
"customproperty2": "svcIT62341",
"customproperty20": "svcIT62341@saviynt.com",
"customproperty26": "CN=svcIT62341,OU=SaviyntPoC,DC=corpAD,DC=saviynt,DC=com",
"customproperty3": "AdminUser",
"customproperty30": "512",
"customproperty6": "svcIT62341",
"customproperty7": "Saviynt",
"endpoint": "SaviyntAD",
"endpointKey": 760,
"lastpasswordchange": "07/10/2020",
"name": "svcIT62341",
"status": "1",
"updatedate": "07/10/2020",
"userKey": "",
"username": ""
}
],
"displaycount": 1,
"errorCode": "0",
"msg": "Successful",
"total": 1
}