Querying the Enterprise Projects Directly Associated with an IAM User
Function
This API is used to query the enterprise projects directly associated with an IAM user.
URI
GET /v3.0/OS-PERMISSION/users/{user_id}/enterprise-projects
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| user_id | Yes | String | IAM user ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Authenticated token with iam:permissions:listEnterpriseProjectsForUser or Security Administrator permission. The domain_id of the account which the user_id belongs to must be the same as the domain_id in the token. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| Array of objects | Enterprise project information. |
Example Request
Request for querying enterprise projects directly associated with an IAM user
GET https://sample.domain.com/v3.0/OS-PERMISSION/users/{user_id}/enterprise-projects Example Response
Status code: 200
The request is successful.
{
"enterprise-projects" : [ {
"projectId" : "dd87a1a8-8602-45a8-8145-393af4c95..."
}, {
"projectId" : "dd87a1a8-8602-45a8-8145-393af4c95..."
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The request is successful. |
| 400 | Parameter error. |
| 401 | Authentication failed. |
| 403 | Access denied. |
| 404 | The requested resource cannot be found. |
| 415 | Incorrect Content-Type. |
| 500 | A system error occurred. |
Error Codes
For details, see Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot