Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > RightScale API 1.5 > Examples > Permissions > List Permissions

List Permissions

Table of Contents

List all the permissions for all the users of the account the user is logged in to.  That is, list all permissions for all users of the current account.

Table of Contents

Curl

Example Call

Prerequisite:  Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.

curl -i -H X_API_VERSION:1.5 -b mycookie -X GET https://my.rightscale.com/api/permissions.xml

Sample Output

Note

  • Truncated XML output without headers included (to save space).
  • Requires 'admin' role, as stated in the Permissions online reference information.  Without 'admin' you will get an "HTTP 403 Forbidden" message.
<?xml version="1.0" encoding="UTF-8"?>
<permissions>
  <permission>
    <links>
      <link href="/api/permissions/590220" rel="self"/>
      <link href="/api/accounts/7960" rel="account"/>
      <link href="/api/users/49052" rel="user"/>
    </links>
    <created_at>2012/10/04 19:25:29 +0000</created_at>
    <role_title>actor</role_title>
    <actions></actions>
  </permission>
  <permission>
    <links>
      <link href="/api/permissions/590221" rel="self"/>
      <link href="/api/accounts/7960" rel="account"/>
      <link href="/api/users/49052" rel="user"/>
    </links>
    <created_at>2012/10/04 19:25:32 +0000</created_at>
    <role_title>observer</role_title>
    <actions></actions>
  </permission>
</permissions>


 

You must to post a comment.
Last modified
23:18, 16 May 2013

Tags

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.