Was this helpful?

 

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/userroles/{role_name}/users?id={user_email}

Description: Adds a user to a role

Verb: POST
Auth: Basic Auth
Media types:
application/x-www-form-urlencoded
Sample Request:
$ curl -H "Content-type:application/x-www-form-urlencoded" -X POST \
https://api.enterprise.apigee.com/v1/o/{org_name}/userroles/{role_name}/users?"id=guest@apigee.com" \
-u myname:mypass
Query Parameters:
Name Description Default Required?
id   N/A Yes
Sample Response:
Success 2xx with proper response
  {
  "emailId" : "guest@apigee.com",
  "firstName" : "guest",
  "lastName" : "guest",
  "roles" : {
    "role" : [ {
      "name" : "apiproxyadmin",
      "organization" : "myorg"
    }, {
      "name" : "orgadmin",
      "organization" : "myorg"
    }, {
      "name" : "reportsadmin",
      "organization" : "myorg"
    } ]
  }

 

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.