First of all, you need to be querying against the 'System Data' domain.
For example, I can see the profile associated with my user:
[Expert@mgmt:0]# mgmt_cli -r true --domain 'System Data' --format json show-administrator name phoneboy
{
"uid" : "5758dc57-9eac-4f8e-8041-0570652a8f19",
"name" : "phoneboy",
"type" : "administrator",
"domain" : {
"uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
"name" : "System Data",
"domain-type" : "mds"
},
"email" : "",
"phone-number" : "",
"authentication-method" : "check point password",
"must-change-password" : false,
"permissions-profile" : {
"uid" : "3c8bf435-6bdc-4dec-aab0-5af53bbf946b",
"name" : "Read Write All",
"type" : "PermissionRole",
"domain" : {
"uid" : "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"name" : "Check Point Data",
"domain-type" : "data domain"
}
},
"sic-name" : "",
"comments" : "",
"color" : "black",
"icon" : "General/Administrator",
"tags" : [ ],
"meta-info" : {
"lock" : "unlocked",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1550159709995,
"iso-8601" : "2019-02-14T15:55+0000"
},
"last-modifier" : "admin",
"creation-time" : {
"posix" : 1550159709995,
"iso-8601" : "2019-02-14T15:55+0000"
},
"creator" : "admin"
},
"read-only" : false
}
Of course, that doesn't solve the next question, which is, why isn't where-used working with permission profiles.
[Expert@mgmt:0]# mgmt_cli --r true --domain 'System Data' --format json where-used uid 3c8bf435-6bdc-4dec-aab0-5af53bbf946b
{
"code" : "generic_err_object_not_found",
"message" : "Requested object [3c8bf435-6bdc-4dec-aab0-5af53bbf946b] not found"
}
Amiad Stern any ideas here?