Change a user's "Access Permissions"

book

Article ID: 101529

calendar_today

Updated On:

Products

CA Infrastructure Management

Issue/Introduction

How can I change a users "Access Permissions" using REST?  These are the containers hold the items that a user monitors.

Environment

Any version of CAPM

Resolution

To change "Access Permissions" for a user do the following in a REST client
  • Use the GET method: http://PC:8181/pc/center/webservice/users/userName/testuser/groups
  • This will show groups for "testuser"

Review CAPC groups:
  • Use the GET method: http://PC:8181/pc/center/webservice/groups/groupPath/All%20Groups/
  • This will show all groups.  Choose which group you want to "Update" to

Update the group (example) for the user
  • Use the PUT method:  http://radjo03-e9631:8181/pc/center/webservice/users/userName/testuser/groups
<?xml version="1.0" encoding="UTF-8"?>
<groups>
    <group ID="16903" Name="Boston"/>
</groups>

The "Access Permissions" should not be updated for the user