Example: Retrieving system-level user accounts

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

Here is a sample GET request that retrieves a list of system-level user accounts. The request writes the list of user accounts to a file named systemLevelUsers.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?verbose=true&
     prettyprint" > systemLevelUsers.xml

Response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<userAccounts>
    <username>lgreen</username>
    <username>mwhite</username>
    <username>pblack</username>
</userAccounts>