• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. Permission Management
  6. Granting Permissions to a User Group Associated with an Enterprise Project

Granting Permissions to a User Group Associated with an Enterprise Project

Function Description

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

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 the Security Administrator permission.

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

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

You are forbidden to access the requested page.

404

The server could not find the requested page.

409

A resource conflict occurs.