Get Vault User Info
1 min
POST
{{url}}/aioc-rest-web/rest/sc/sapm/getSapmUserInfo
Path Parameters
- urlstringDefaulturl
Header Parameters
- X-XSRF-TOKENstringDefault{{csrftoken}}
Body Parameters
- bodyobjectDefault{ "dbId": 6335936, "username": "KORY", "description": "", "secretNotes": null, "password": null, "nextChangeTime": 1746782309528, "lastChangeTime": 1746636602312, "additionalInfo": null, "passwordSeenStatus": "SEEN", "validationStatus": "VALID", "lastAttemptStatus": null, "approvalStatus": null, "groupFullPath": null }
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/sc/sapm/getSapmUserInfo \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{csrftoken}}' \
--data '"{\n \"dbId\": 6335936,\n \"username\": \"KORY\",\n \"description\": \"\",\n \"secretNotes\": null,\n \"password\": null,\n \"nextChangeTime\": 1746782309528,\n \"lastChangeTime\": 1746636602312,\n \"additionalInfo\": null,\n \"passwordSeenStatus\": \"SEEN\",\n \"validationStatus\": \"VALID\",\n \"lastAttemptStatus\": null,\n \"approvalStatus\": null,\n \"groupFullPath\": null\n}"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-xsrf-token", "{{csrftoken}}");
var raw = JSON.stringify("{\n \"dbId\": 6335936,\n \"username\": \"KORY\",\n \"description\": \"\",\n \"secretNotes\": null,\n \"password\": null,\n \"nextChangeTime\": 1746782309528,\n \"lastChangeTime\": 1746636602312,\n \"additionalInfo\": null,\n \"passwordSeenStatus\": \"SEEN\",\n \"validationStatus\": \"VALID\",\n \"lastAttemptStatus\": null,\n \"approvalStatus\": null,\n \"groupFullPath\": null\n}");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/sc/sapm/getSapmUserInfo", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("{{url}}/aioc-rest-web/rest/sc/sapm/getSapmUserInfo")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-xsrf-token"] = "{{csrftoken}}"
request.body = JSON.dump("{\n \"dbId\": 6335936,\n \"username\": \"KORY\",\n \"description\": \"\",\n \"secretNotes\": null,\n \"password\": null,\n \"nextChangeTime\": 1746782309528,\n \"lastChangeTime\": 1746636602312,\n \"additionalInfo\": null,\n \"passwordSeenStatus\": \"SEEN\",\n \"validationStatus\": \"VALID\",\n \"lastAttemptStatus\": null,\n \"approvalStatus\": null,\n \"groupFullPath\": null\n}")
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "{{url}}/aioc-rest-web/rest/sc/sapm/getSapmUserInfo"
payload = json.dumps("{\n \"dbId\": 6335936,\n \"username\": \"KORY\",\n \"description\": \"\",\n \"secretNotes\": null,\n \"password\": null,\n \"nextChangeTime\": 1746782309528,\n \"lastChangeTime\": 1746636602312,\n \"additionalInfo\": null,\n \"passwordSeenStatus\": \"SEEN\",\n \"validationStatus\": \"VALID\",\n \"lastAttemptStatus\": null,\n \"approvalStatus\": null,\n \"groupFullPath\": null\n}")
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-xsrf-token': '{{csrftoken}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
[
{
"dbId": 415240,
"configId": -9077,
"configName": "Linux",
"configStrategy": "SSH",
"username": "newuser",
"sapmIdentifier": "newuser@/",
"description": "",
"secretNotes": null,
"password": null,
"prevPassword": null,
"nextChangeTime": 1745402766713,
"lastChangeTime": 1741822980085,
"additionalInfo": null,
"passwordSeenStatus": "UNSEEN",
"validationStatus": "INVALID",
"lastAttemptStatus": null,
"approvalStatus": null,
"eventUserEid": "admin",
"ip": "10.20.42.19",
"hostName": "10.20.42.19",
"groupId": null,
"groupName": null,
"groupFullPath": null,
"groupDbId": null,
"firstPartSeenUser": null,
"secondPartSeenUser": null,
"deviceId": "5cb2eac9-4bb0-43bc-83fb-a899265a9c9f",
"permissions": [],
"managers": [],
"escalatedManagers": [],
"notificationGroups": [],
"userPermissionLevel": 6,
"masterAccountId": null,
"isApprovalRequired": false,
"isManager": false,
"secretName": "newuser",
"secretType": "DYNAMIC",
"owner": {
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin",
"name": null,
"firstName": null,
"surname": null,
"email": null,
"phoneNumber": null,
"smsEnabled": null,
"firstResult": 0,
"maxResult": 50,
"enabled": false,
"hasToken": false,
"createDate": null,
"appKeyId": 0,
"token": null,
"tokenDate": null,
"secretKey": null,
"qrImage": null,
"rawSecret": null,
"internal": false,
"personelId": null,
"forcePasswordChangeOnNextLogin": false,
"isLocked": false,
"lockReason": null,
"password": null,
"secondPassword": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"recordLimit": null,
"location": null,
"passwordAlgorithm": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"secondPasswordChange": false,
"groups": null,
"managerGroups": null,
"properties": null,
"tempUser": false,
"tempUserStartTime": null,
"tempUserEndTime": null,
"delegations": null,
"userProperties": null
},
"privateType": "YES",
"changePeriod": 7,
"staticSecretType": null,
"secretData": null,
"accountTags": null,
"comment": null,
"passwordExpirationInMinute": null,
"approvedBy": null,
"approvedTime": null,
"createdAt": 1741775728802,
"updatedAt": 1741822984986,
"approvalLevel": null,
"approverType": null,
"manager": false,
"approvalRequired": false,
"sapmidentifier": "newuser@/",
"editCommentEnabled": true,
"updateCommentEnabled": true
}
]