PKI CA List User Roles REST API - dogtagpki/pki GitHub Wiki
-
Path:
/ca/rest/admin/users/{userID}/memberships -
Method:
GET -
Authentication: Client certificate
-
Parameters:
-
userID: string -
filter: string -
start: integer -
size: integer
-
-
Content: None
$ 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": []
}