Previous Topic: Create Groups Using Web ServicesNext Topic: Add Items to Groups


Create Groups within a Custom Tenant

The procedure for creating groups within a custom tenant definition is slightly different from the procedure to create groups in the Default Tenant.

Supply the group ID or the group path that you retrieved in a previous procedure as parameters. But create the group in the "/All Groups/Defined Tenants/" path.

Here is an example of how to add groups to a non-default tenant. In the user interface, the result looks like the following image:

Create groups within the group representing a custom tenant.

Follow these steps:

  1. Set up a REST client with a connection to the CA Performance Center server.
  2. Use the following format for the URL in the REST client:
    http://CA Performance Center Server IP Address:8181/pc/center/webservice/groups/
    false/false
    
  3. Select POST for "HTTP" Method.
  4. Provide a valid Username and Password in the request header for a user account that has global administrator access to CA Performance Center.
  5. Select 'application/xml' as the 'Body Content-type'.
  6. Add the following XML within the "Body" text section, replacing the values with the values that you want to use for the new group:
    <GroupTree path="/All Groups/Defined Tenants/MyCustomTenant/Groups">
        <Group name="North Carolina" desc="NC in the Southeast Region" inherit="true" type="custom group"/> 
    </GroupTree>
    
  7. Run the method.

    A new group, 'North Carolina,' is created under the custom tenant, MyCustomTenant. Only the global administrator and the administrator for the custom tenant can manage this group, and only MyCustomTenant users can see this group.