![]() |
Consumption Analytics Documentation |
Creates a new user group based on the provided information.
The user group definition information. The
userGroup
’s
id
attribute should be empty. XML text with root element
userGroup
and the following XML schema:
<xs:element name="userGroup" xmlns:tns="http://www.cloudcruiser.com/webservices/v1/User">
<xs:complexType>
<xs:sequence>
<xs:element name="groupName" type="xs:string"/>
<xs:element minOccurs="0" name="title" type="xs:string"/>
<xs:element maxOccurs="unbounded" name="accountStructure" type="tns:AccountStructure"/>
<xs:element default="true" name="allowAllAccounts" type="xs:boolean"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="allowedAccountId" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="user" type="tns:UserItem"/>
</xs:sequence>
<xs:attribute name="id" type="xs:int"/>
</xs:complexType>
</xs:element>
<xs:complexType name="UserItem">
<xs:sequence/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="id" type="xs:int"/>
<xs:attribute name="enabled" type="xs:boolean"/>
</xs:complexType>
<?xml version="1.0" encoding="UTF-8"?> <userGroup xmlns="http://www.cloudcruiser.com/webservices/v1/User"> <groupName>testGroup-1</groupName> <title>test group 1</title> <accountStructure name="Default" groupDefault="true"/> <accountStructure id="3" groupDefault="false"/> <allowAllAccounts>false</allowAllAccounts> <allowedAccountId>B-AA-MMMM</allowedAccountId> <allowedAccountId>B-AA-LLLL</allowedAccountId> </userGroup>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<userGroup xmlns="http://www.cloudcruiser.com/webservices/v1/User" id="10701">
<groupName>testGroup-1</groupName>
<title>test group 1</title>
<accountStructure name="Default" groupDefault="true" id="0"/>
<accountStructure name="Department View" groupDefault="false" id="3"/>
<allowAllAccounts>false</allowAllAccounts>
<allowedAccountId>B-AA-LLLL</allowedAccountId>
<allowedAccountId>B-AA-MMMM</allowedAccountId>
</userGroup>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP