List Policies by User¶
List the policies bound to a user.
Operation Permissions¶
Applications assigned with the administrator policy in the OU.
Request Format¶
GET https://{apigw-address}/enos-iam-service/v2.3/user/policy/list
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Mandatory |
String |
The ID of the organization to which the user belongs to. How to get orgId>> |
id |
Query |
Mandatory |
String |
The user ID. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Array of Policy Structs |
The list of policies. For more information, see Policy Struct. |
Policy Struct ¶
Name |
Data Type |
Description |
---|---|---|
id |
String |
The policy ID. |
code |
String |
The policy code. |
desc |
String |
The policy description. |
name |
String |
The policy name. |
type |
Integer |
|
created_by |
String |
The username of the user who created the policy. |
permissions |
Map |
An unused parameter, usually blank. |
updated_at |
String |
An unused parameter, usually null. |
Samples¶
Request Sample¶
url: https://{apigw-address}/enos-iam-service/v2.3/user/policy/list?orgId=yourOrgId&id=yourRequestedUserId
method: GET
Return Sample¶
{
"fail": false,
"data": [
{
"id": "1",
"code": "admin",
"desc": "administrator",
"name": "administrator",
"type": 1,
"created_by": "",
"permissions": {},
"updated_at": null
},
{
"id": "5",
"code": "security.auditor",
"desc": "Security Auditor",
"name": "Security Auditor",
"type": 8,
"created_by": "",
"permissions": {},
"updated_at": null
},
{
"id": "21417",
"code": "",
"desc": "test policy",
"name": "test",
"type": 2,
"created_by": "",
"permissions": {},
"updated_at": null
},
],
"success": true,
"status": 0
}