AnsweredAssumed Answered

Query permission profiles where used.

Question asked by Jeremy Parker on Feb 11, 2019
Latest reply on Feb 14, 2019 by Jeremy Parker

Hello,
I'm trying to use the mgmt_cli to query where a permission profile is used but I'm running into a roadblock.

I can't see any reference to it on accounts or any reference to accounts on it when I query with show object.

 

Object type is blank here which I'm guessing is a problem.

.\mgmt_cli.exe show object uid $id details-level full -m $server --format json --session-id $sid
{
  "object" : {
    "uid" : "96040d34-c882-407e-a3db-14dc3e705b62",
    "name" : "Full_Administration",
    "type" : "",
    "domain" : {
      "uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
      "name" : "SMC User",
      "domain-type" : "domain"
    },
    "color" : "blue",
    "meta-info" : {
      "validation-state" : "ok",
      "last-modify-time" : {
        "posix" : 1542166849773,
        "iso-8601" : "2018-11-14T11:40+0800"
      },
      "last-modifier" : "System",
      "creation-time" : {
        "posix" : 1510728202381,
        "iso-8601" : "2017-11-15T14:43+0800"
      },
      "creator" : "System"
    },
    "tags" : [ ],
    "icon" : "General/Role",
    "comments" : "All Admin rights",
    "display-name" : "",
    "customFields" : null
  }
}

Since in the GUI it shows where-used correctly I thought this might be the answer but the where-used command doesn't find it.

.\mgmt_cli.exe where-used uid $id details-level full -m $server --format json --session-id $sid

{
  "code" : "generic_err_object_not_found",
  "message" : "Requested object [96040d34-c882-407e-a3db-14dc3e705b62] not found"
}

 

Is it possible to figure out from the API where a permission profile is applied?

Thanks
Jeremy

EDIT: Running 80.20

Outcomes