Delete user via Web Service

book

Article ID: 192284

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Procedure for delete user via Rest Web Service

Cause

Delete procedure

Environment

Release : 3.7

Component : IM Reporting / Admin / Configuration

Resolution


http://PC:8181/pc/center/webservice/users/idNames
<idNames>
<idName value="userName"/>
<idName value="userId"/>
</idNames>

http://PC:8181/pc/center/webservice/users/userId/4
<user>
<userId>4</userId>
<defaultGroupId>18202</defaultGroupId>
<name>bogota</name>
<description/>
<enabled>true</enabled>
<removable>true</removable>
<email/>
<timezone>America/Bogota</timezone>
<authenticationType>PRODUCT</authenticationType>
<role>
<roleId>500</roleId>
<name>Network Administrator</name>
<description>Network Administrator</description>
<tenantId>8</tenantId>
<enabled>true</enabled>
<userCount>1</userCount>
<updatedOn>2019-07-11T16:51:26-03:00</updatedOn>
<accessRights/>
</role>
<tenantId>8</tenantId>
<culture>en-US</culture>
<customGroups>false</customGroups>
<suppressViews>false</suppressViews>
</user>

http://PC:8181/pc/center/webservice/users/userName/bogota
<user>
<userId>4</userId>
<defaultGroupId>18202</defaultGroupId>
<name>bogota</name>
<description/>
<enabled>true</enabled>
<removable>true</removable>
<email/>
<timezone>America/Bogota</timezone>
<authenticationType>PRODUCT</authenticationType>
<role>
<roleId>500</roleId>
<name>Network Administrator</name>
<description>Network Administrator</description>
<tenantId>8</tenantId>
<enabled>true</enabled>
<userCount>1</userCount>
<updatedOn>2019-07-11T16:51:26-03:00</updatedOn>
<accessRights/>
</role>
<tenantId>8</tenantId>
<culture>en-US</culture>
<customGroups>false</customGroups>
<suppressViews>false</suppressViews>
</user>




Delete:



http://PC:8181/pc/center/webservice/users/userName/bogota







Also check if the removable parameter is true
<removable>true</removable>

Additional Information

Please note that the 'admin' and 'user' users may not be deleted:

https://knowledge.broadcom.com/external/article/195442/

 

See Users Web Service Guide on site:
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/performance-management/3-7/apis/performance-center-rest-web-services/users-web-service.html

Attachments