Help Center> Identity and Access Management> API Reference> Out-of-Date APIs> Granting Permissions to a User Group Associated with an Enterprise Project
Updated on 2022-12-08 GMT+08:00

Granting Permissions to a User Group Associated with an Enterprise Project

Function Description

This API is used to grant permissions to a user group associated with the enterprise project of a specified ID.

This API can be invoked using the global domain name iam.myhuaweicloud.com.

This API will be deprecated soon. Please use the API described in Granting Permissions to a User Group Associated with an Enterprise Project instead.

URI

  • URI format

    PUT /v3.0/OS-PAP/enterprise-projects/{enterprise_project_id}/groups/{group_id}/roles/{role_id}

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    enterprise_project_id

    Yes

    String

    ID of an enterprise project.

    group_id

    Yes

    String

    ID of a user group to be granted permissions.

    role_id

    Yes

    String

    Permission ID. Only fine-grained policies (including default and custom policies) of version 1.1 can be granted to a user group.

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Authenticated token with Security Administrator permissions.

    Content-Type

    Yes

    String

    Fill application/json;charset=utf8 in this field.

  • Sample request
    curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X PUT https://iam.myhuaweicloud.com/v3.0/OS-PAP/enterprise-projects/535fb147-6148-4c71-a679-b79a2cb0e.../groups/10d8104f395d43468094753f28692.../roles/013ad036ee4c4d108327f02cbb479...

Response

No response body.

Status Codes

Status Code

Description

204

The request is successful.

400

The server failed to process the request.

401

You must enter a username and password to access the requested page.

403

Access denied.

404

The server could not find the requested page.

500

Internal server error.