Here is a sample GET request that retrieves the system-level user account information for the username lgreen. The request writes the information to a file named systemLevelUser-lgreen.xml. The request is made with a system-level user account that includes the monitor role.
Request with cURL command line
curl -k -i -H "Authorization: bGdyZWVu:35dc4c4aa08fe0deab7e292e00eb8e97"
"https://admin.hcp.example.com:9090/mapi/userAccounts/lgreen?verbose=true&
prettyprint" >systemLevelUser-lgreen.xml
Response body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<userAccount>
<enabled>true</enabled>
<localAuthentication>true</localAuthentication>
<roles>
<role>ADMINISTRATOR</role>
<role>SEARCH</role>
<role>MONITOR</role>
<role>SECURITY</role>
<role>SERVICE</role>
<role>COMPLIANCE</role>
</roles>
<allowNamespaceManagement>true</allowNamespaceManagement>
<description>Developer, Team Lead</description>
<forcePasswordChange>false</forcePasswordChange>
<fullName>Lee Green</fullName>
<userGUID>eaa046e0-c17e-42fb-8840-ab5e05cf8876</userGUID>
<userID>104</userID>
<username>lgreen</username>
</userAccount>
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.