CreateUser.xml

+

Search Tips   |   Advanced Search

 

<?xml version="1.0" encoding="UTF-8"?>

<request 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
    type="update" create-oids="true">
    <!-- sample for creating a user and adding the user to a group -->
	<portal action="locate">
        <user action="update" name="sample_user" firstname="Sample" lastname="User" password="secret">
            <description>My sample user</description>
            <parameter name="preferredLanguage" type="string" update="set">en</parameter>
            <parameter name="cn" type="string" update="set">sample</parameter>
		</user>
        <group action="update" name="sample_group">
            <description>Member of the sample group</description>
            <member-user update="set" id="sample_user"/>
        </group>
	</portal>
</request>