You are viewing the Apigee Management API reference documentation. For the main product docs, and to search all docs, go to https://docs.apigee.com. For cross-site search, click Search all in the search results.

Add a user to a role

Resource Summary

Security

Content Type

application/x-www-form-urlencoded

Category

Roles at Organization Level,

addMembershipRolePost

POST

Add a user to a role

Add a user to a role. Replace the role name in the URL with the specific role for the user. Roles include:

  • Organization administrator: orgadmin
  • Read-only organization administrator (Cloud only): readonlyadmin
  • Operations administrator: opsadmin
  • Business user: businessuser
  • User: user

Or, if you created a custom role (using the UI or management API), specify the name of that role. 

Resource URL

https://api.enterprise.apigee.com/v1 /organizations/{org_name}/userroles/{role_name}/users

Query Parameters

Name Values Description
id
(required)

Specify the email address of the user.

Header Parameters

Name Values Description
Content-Type
(required)

Specify the content type as application/x-www-form-urlencoded.

Request Body

org_name Mention the organization name true

role_name Mention the role name true

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Working...

Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click the "Send Feedback" button.
    (Incorrect? Unclear? Broken link? Typo?)