Removing Roles

Use the del operation to remove roles.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet removing roles includes the del operation node:

<packet>
<role>
   <del>
   ...
   </del>
</role>
</packet>

 

The del node is nested within the RoleDelInput type (role.xsd). This node has the following graphics representation:

role-del-rps.gif

 

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The del node of the response packet is structured as follows:

site-del-reps.gif

 

 

Samples

This packet requests to remove roles with IDs 123 and 124:

<packet version="1.6.3.0">
<role>
<del>
   <filter>
      <id>123</id>
      <id>124</id>
   </filter>
</del>
</role>
</packet>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
  <role>
    <del>
      <result>
        <status>ok</status>
        <filter-id>123/filter-id>
        <id>2</id>
      </result>
      <result>
        <status>ok</status>
        <filter-id>124/filter-id>
        <id>2</id>
      </result>
    </del>
  </role>
</packet>