Example: Retrieving system-level group 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 group accounts. The request writes the list of group accounts to a file named systemLevelGroups.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/groupAccounts?verbose=true&
     prettyprint" >systemLevelGroups.xml

Response body in XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<groupAccounts>
    <groupname>Admins@dev.hcp.example.com</groupname>
    <groupname>Admins@finance.hcp.example.com</groupname>
    <groupname>Admins@sales.hcp.example.com</groupname>
</groupAccounts>