security iam policy mapping
Displays IAM policy-identity mapping information.
The security iam policy mapping displays mapping
information related to the IAM policies that are assigned to the
specified identities, that is one or more users, groups, and/or
roles.
You can specify multiple type of identities (users, groups, roles) with comma-separated values for each identity type in the command.
Syntax
- CLI
-
maprcli security iam policy mapping [ -users <List of Users> ] [ -groups <List of Groups> ] [ -roles <List of Roles> ]
- REST
-
Request Type GET Request URL http[s]://<host>:<port>/rest/iam/policy/mapping?<parameters>
Parameters
| Parameter | Description |
|---|---|
users |
(Optional) List of users |
groups |
(Optional) List of groups |
roles |
(Optional) Name of roles |
Example
Display IAM policies assigned to users user2 and user3
CLI
maprcli security iam policy mapping -users user2,user3 -json
{
"timestamp":1726218942771,
"timeofday":"2024-09-13 02:15:42.771 GMT-0700 AM",
"status":"OK",
"total":2,
"data":[
{
"IdType":"USER",
"IdName":"user3",
"IamPolicies":"AllowVol,DenyVol"
},
{
"IdType":"USER",
"IdName":"user2",
"IamPolicies":"AllowVol"
}
]
}RESTcurl -u <username> -X GET https://server.sj.us:8443/rest/security/iam/policy/mapping?users=user2,user3