Skip to content

PKI CA List User Roles REST API

ckelleyRH edited this page Jun 7, 2021 · 2 revisions

Request

  • Path: /ca/rest/admin/users/{userID}/memberships

  • Method: GET

  • Authentication: Client certificate

  • Parameters:

    • userID: string

    • filter: string

    • start: integer

    • size: integer

  • Content: None

Example

$ curl -k -H "Accept: application/json" --user caadmin:Secret.123 -s https://localhost.localdomain:8443/ca/rest/admin/users/pkidbuser/memberships | python -m json.tool
{
    "total": 2,
    "Membership": [
        {
            "id": "Certificate Manager Agents",
            "UserID": "pkidbuser",
            "Link": {
                "rel": "self",
                "href": "https://localhost.localdomain:8443/ca/rest/admin/users/pkidbuser/memberships/Certificate+Manager+Agents",
                "type": "application/json"
            }
        },
        {
            "id": "Subsystem Group",
            "UserID": "pkidbuser",
            "Link": {
                "rel": "self",
                "href": "https://localhost.localdomain:8443/ca/rest/admin/users/pkidbuser/memberships/Subsystem+Group",
                "type": "application/json"
            }
        }
    ],
    "Link": []
}
Clone this wiki locally