Getting a PAM User returned via REST API and CLI shows different format and name.
Following is a sample user imported from Active Directory.
REST API
"https://capam.training.local/api.php/v1/users.json?sortBy=%2BuserName&limit=0&searchRelationship=AND&fields=*"
CLI
capam_command capam=capam.training.local adminUserID=super cmdName=searchUser
The User from REST API:
{
"
userId": "
1234",
"userName": "CN=sample user1,CN=Users,DC=training,DC=local",
"userPrincipalName": "
[email protected]",
}
User from CLI searchUser:
<User>
<userID>
[email protected]</userID>
<
gkUserId>
1234</gkUserId>
...
...
</User>
Is the "userId" from (REST API) and "gkUserId" from (CLI) referencing the same?