Creating Users via XML

I want to create my users with XML. I have plenty of examples
on how to create "simple" users that do not need any of the more
complex attributes such
as "DirectoryUserAcl", "PrimaryUserProfileAcl" or "DefaultAcls".
I have 2 questions:
1. How do I use these more complex attributes in an XML file?
An example of how they look would be great. i.e.
<DirectoryUserAcl>value goes here</DirectoryUserAcl>. This
approach throws errors.
2. Secondly, which attribute sets the default ACL that a
document would get if created by this user.

Hi guys,
thanks for the feedback, I did get a response on metalink that
answers my questions. Here it is if you are interested...
An example would something like this.
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>fred</UserName>
<Password>fred</Password>
<DirectoryUserAcl reftype="name">Private</DirectoryUserAcl>
<DistinguishedName>fred</DistinguishedName>
<DistinguishedNameSuffix>.fthw.siemens.de</DistinguishedNameSuffi
x>
<EmailAddressSuffix>@fthw.siemens.de</EmailAddressSuffix>
<HasEmail>true</HasEmail>
<EmailUserProfileAcl
reftype="name">Private</EmailUserProfileAcl>
<AdminEnabled>false</AdminEnabled>
<CanChangePassword>true</CanChangePassword>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasHomeFolder>true</HasHomeFolder>
<HomeFolderAcl reftype="name">Private</HomeFolderAcl>
<HasContentQuota>true</HasContentQuota>
<ContentQuotaEnabled>true</ContentQuotaEnabled>
<ContentQuotaAcl reftype="name">Private</ContentQuotaAcl>
<ContentQuotaAllocatedStorage>10000</ContentQuotaAllocatedStorage
>
<HasPrimaryUserProfile>true</HasPrimaryUserProfile>
<PrimaryUserProfileAcl
reftype="name">Private</PrimaryUserProfileAcl>
</SimpleUser>
2. It would depend on the following:
<PrimaryUserProfileAcl
reftype="name">Private</PrimaryUserProfileAcl>
<DefaultAclsBundleName>userAclBundleForClasses</DefaultAclsBundle
Name>
<DefaultAcls>MyAclBundleForClasses</DefaultAcls>
However, there is a problem with current versions (bug1736384,
unpublished) in which you can't use XML to set the default ACL
to an existing property bundle.
According to the bug the workaround is to "use Java or the Admin
utilities tasks
- "CreateDirectoryuser" to create a User
and "CreatePropertybundle" to create a Propertybundle that
represents the defaultACLs
- "CreateUserProfile" and set the DEFAULTACLS attribute to the
bundle ""

Similar Messages

  • Create users via the CLI interface on a SX20

    Hi 
    Are there some who know how to create users via the CLI interface on a SX20. You can do this via the web interface but I have many video installations where I need to create a user account. Therefore, it would be easiest if I can make it through the CLI interface. 
    Best regards 
    Jesper

    Unless there's a very well hidden command somewhere, then no. As far as I know, this can only be done for the remote supportuser account;
    xcommand UserManagement ?
    xCommand UserManagement RemoteSupportUser Create
        ExpiryDays: <1..31>
    xCommand UserManagement RemoteSupportUser Delete
    xCommand UserManagement RemoteSupportUser DisablePermanently
        Confirm(r): <Yes>
    xCommand UserManagement RemoteSupportUser GetState
    /jens
    Please rate replies and mark question(s) as "answered" if applicable.

  • Error when create user via OIM web

    Hi Gurus..
    I hava some problem when I creating new user via web OIM, error appear while inpute the start date value.
    Need help for you guys,
    This is the error code.
    <Error> <oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #5
    java.lang.NullPointerException
        at oracle.iam.identitytaskflow.utils.UserManagerValidationUtils.handleAccountEndDateValidation(UserManagerValidationUtils.java:237)
        at oracle.iam.identitytaskflow.utils.UserManagerValidationUtils.processDateValidations(UserManagerValidationUtils.java:589)
        at oracle.iam.identitytaskflow.utils.UserManagerValidationUtils.processDateValidation(UserManagerValidationUtils.java:543)
        at oracle.iam.identitytaskflow.common.components.UIInputDate$DateValueValueChangeListener.processValueChange(UIInputDate.java:135)
        at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:134)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:675)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:210)
        at org.apache.myfaces.trinidad.component.UIXSelectInput.broadcast(UIXSelectInput.java:216)
        at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)

    probably yes but I am not so sure about that, I have checked the User.xml for make sure this but I can't found something wrong. any clue Shashank?
    Regards,
    -Rius-

  • Creating users via the admin console

    Hi,
    I'm trying to create a user via the admin console. The user will have to
    authenticate via Membership, and will require a username and password.
    However, when creating the user via the admin console it does not allow you
    to specify a default password (or by using the command line 'ipsadmin create
    user /domain/user.xml', unless there is some XML field specified in the file
    to do that? If so, what is it? Specify an attribute in the
    "iwtAuthMembership-password"?) After creating a user via the console, I
    tried logging in using a blank password and a password the same as the
    username, but neither worked. Is this password set as default to something,
    and if so to what?
    Also, is there some existing means for a user who has already created a
    membership account to change their password? If not, then I guess I will
    have to develop some code to modify the "iwtAuthMembership-password"
    attribute.
    Thanks,
    Mark

    Hi,
    After you have created the user via the console, then the user will be added to a particular role.From the console go that particular domain and then to the role under which the user was created.Then select the Users link you can see the users list.From that list select the user for whom a password is needed,then it will lead you to a screen where you can see a link named Authentication.Expand that link and click on the Membership link there you can enter the username and password for the user

  • Creating user in XML Publisher

    Dear friends,
    Is it possible to check for username and password from database instead of creating it from XML Publisher.I directly want to create dynamic xml from my jsp page and after checking valid user name and password,it will show the report.I am told that i don't have to login from XML Publisher home.It will internally check user name from database.
    Thanks in advance

    see Validating user name and password in XML Publisher.
    Marcos

  • Trouble Creating Users Via Web Form

    I'm having trouble creating user in a 9i database via web front end.
    I use the following sql to create the user
    strSQL="CREATE USER"""+strUser+"""PROFILE ""DEFAULT"" IDENTIFIED BY ""HELLO"" DEFAULT TABLESPACE ""DATA"" TEMPORARY TABLESPACE ""TEMP"" ACCOUNT UNLOCK"
    I then execute another two sql statments to grant "connect" thus
    strSQL="GRANT ""CONNECT"" TO "+strUser+""""
    strSQL="ALTER USER """ strUser"""DEFAULT ROLE ALL"
    Whenever I try connecting using the new users details, but get an error message that the server had problems accessing the LDAP directory service(ORA-28030).
    I'm happy that the SQL is correect as I created the account that I wanted using Enterprise Console and coppied the SQL it produced. I'm assuming that there's something in the background that is not being triggered when creating the user via the web front end.
    Can anyone tell me where I'm going wrong?
    Thanks
    Jason

    My apologies, I didn't realise HTML DB was a product. I thought it was a forum for questions regarding HTML and databases.
    Doh!!!
    Jason

  • Creating Users via Command Line/Terminal

    Hey Everyone!
    A Happy New Year to all! I hope that it was a good way to end your 2005 and I hope your 2006 looks to be promising!
    Now back to the tough stuff.
    Does anyone have a detailed example of how to create a user (user name, short name, password) assign them to a group(s), and set an expiration date for that account?
    I'm guessing that there is a single string that could be entered into Terminal that would do all of this. I've read the man page for dscl but I honestly dont know how to interpret it as I'm not TOO fluent with Terminal yet. Yes I understand it can be dangerous to work inside Terminal which is why I'm asking for an assistance in translating the man page to english

    dscl -u $ADMIN -P $PASSWORD /LDAPv3/127.0.0.1 -create /Users/$shortname
    dscl -u $ADMIN -P $PASSWORD /LDAPv3/127.0.0.1 -create /Users/$shortname UniqueID $4
    dscl -u $ADMIN -P $PASSWORD /LDAPv3/127.0.0.1 -create /Users/$shortname RealName $shortnam
    PowerMac G4 1.25DP   Mac OS X (10.4.1)  

  • Create user via BAPI_USER_CREATE

    Hello all,
    I try to create via the bapi bapi_user_create an user based on an other user (I use the field REF_USER) because I want to give to the new user the same profile and role that the reference user. But it does not work. The new user is well created but without profile and role.
    I have tried also via the bapi BAPI_USER_PROFILES_ASSIGN but it said me that "Assign the associated role to yourself" how I can do that ?
    Anybody has an idea ???
    Thank you very much ... I am a little bit disappointed ...

    Hi genevieve,
    did you tried it also with BAPI_USER_CREATE1. I read that the BAPI_USER_CREATE is obsolet. And if that dosent work give BAPI_USER_CLONE a chance. Maybe this could help
    Thorsten
    PS Did your Refrerence user has  user type Reference? You will see it in the su01 under logon data
    Message was edited by: Thorsten Blechinger

  • Create user via UME API/LDAP

    Hi,
    I'm trying to create a user using the UME Api
    IUserMaint umeUser = UMFactory.getUserFactory().newUser( uniqueId );
    .... set properties on umeUser...
    umeUser.commit;
    The user created ok in our ldap server (Tivoli DS) but on the root dn, i.e. ou=companyX,c=se
    Is there a way to create the user in another ldap-node, say ou=internetUsers, ou=companyX, c=se?

    Hello Mattias,
    You should set the property
    <b>ume.ldap.access.creation_path.uacc = ou=internetUsers, ou=companyX, c=se</b>
    Check this for more:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/63/14f5b51a6eff429f2d8b2063400e82/content.htm
    This path is where new user accounts are created.
    This path must be relative to the path defined in
    ume.ldap.access.base_path.uacc
    If this property is not defined, user accounts are stored in the path defined in
    ume.ldap.access.base_path.uacc
    Greeting,
    Praveen Gudapati

  • Create user in LDAP subtrees via UME

    Hi all,
    We have different user types (public, employee, ...) in our LDAP server. Each user type has its own subtree under the ou=User node which is configured in UME. It is possible to create users via UME which are places under the according subtree?
    Best Regrads,
    Daniel

    Hi Stuart,
    we had exactly the same problem.
    Defining the additional attributes in the sapum.properties only makes them "visible" in the User Admin iViews.
    We also had to define the Attributes in our DataSource COniguration File in the section for the corresponding Datasource with:
    <attribute name="uniquename" populateInitially="true"/> (SAP Standard Attribute)
    e.g.
    <attribute name="FavouriteAnimal" populateInitially="true"/>
    Furthermore you should create a mapping to an LDAP Attribute. E.G. the Exchange Extension for MSADS offers 9 extensionattributes for free use.
    this is made in the section
    <attributemapping>
    <attribute name="displayname">     (-> Portal Attribute)     <physicalAttributename="displayname"/> (> LDAP)
    </attribute>
    (SAP Standard)
    so for your own attribute you can use e.G.
    <attribute name="FavouriteAnimal">
         <physicalAttributename="extensionattribute1"/>
    </attribute>
    Regards,
    Jochen
    Message was edited by: Jochen Spieth

  • How to create user credit control via customization

    Hi !
    I have to create user credit control via Transaction :
    SPRO.
    path:
    Sales and Distribution->Basic Functions->Credit Management/Risk Management->Credit Management->Define Automatic Credit Control.
    I want to check the user checkbox, and create my logic
    of credit control.
    In the help of credit control screen, it says that i have
    to use user exits LVKMPTZZ and LVKMPFZ1.
    However when i looked for that user exits at SMOD
    that user exit don't exist !!!
    How do i use those user exits ? Why can't i find those user exit ?
    Can you give me please  a code example of how to use
    the user checkbox to change the logic of credit control ? or any material about the issue.
    thanks
    moshe

    Hi,
      You dont find the programs LVKMPTZZ and LVKMPFZ1 in SMOD transaction, check in SE38 by typing the program names, there you have the provision to write your custom code,
      As user exits are specific to the business, it would be difficult to send the sample code to cater the functionality expected by your business,
    Hope this helps,
    Rgds,

  • How to create a user using XML and specifying addional attributes that are objects

    I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
    Here's the xml file:
    <?xml version = '1.0' standalone = 'yes'?>
    <SimpleUser>
    <UserName>mike2</UserName>
    <Password>abc123</Password>
    <AdminEnabled>false</AdminEnabled>
    <HomeFolderRoot>/home</HomeFolderRoot>
    <HasContentQuota>false</HasContentQuota>
    <DirectoryUserAcl> ??? </DirectoryUserAcl>
    <DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
    <HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
    </SimpleUser>

    I figured out the answer:
    <?xml version = '1.0' standalone = 'yes'?>
    <SimpleUser>
    <UserName>mike2</UserName>
    <Password>abc123</Password>
    <AdminEnabled>false</AdminEnabled>
    <HomeFolderRoot>/home</HomeFolderRoot>
    <HasContentQuota>false</HasContentQuota>
    <DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
    </SimpleUser>
    null

  • Create business partner with role 'Internet User' via BP

    Hi,
    We want to create business partner with role 'BUP005 Internet User'
    for purpose to link with created early user su01.
    It's work via isauseradm application, Web UI.
    Now I want to create new role 'BUP005 Interner user' via GUI. I started Tcode BP.
    I filled USERNAME, password, roles. I tried to save BP.
    I got this error:
    Enter the Internet user
    Message no. R11214
    You have maintained attributes (logon data, roles and/or fixed values) for the Internet user, without having entered the Internet user itself.
    But,
    Field 'INTERNETUSER' is not changeble.
    Denis.

    Hi, DJ
    Thank you for answer)
    1. Have you saved the BP. If Yes, just see if the INTERNET USER maintained is available in SU01.
    Yes, but I can not see  INTERNET USER in the BP.
    2. If you are not able to assign the INTERNET USER, please try to maintain the INTERNET USER in BP.
    I can not do it, because I can not change field INTERNET USER
    3. If the INTERNET USER field is not available, just check the authorization for the same.
    I has all authorization: sap_all.
    Denis

  • Create essbase olap user via japi - 7.1

    So this question has floated around a bit, but I'm not able to find an explicit answer for Essbase 7.1:Is it possible to create users in OLAP server 7.1 via the japi? It seems you can only create users in EDS but there is no way to propagate those to OLAP server. Is there any way of programmatically doing this, other than just running MAXL scripts?Thanks

    In the essbase.properties file, set this flag to true:olap.server.autoCreateUser=true.

  • Create local user via dropdown from .csv

    Hello
    i try to create a powershell script to create local users on Win7.
    All the user informations are stored in a .csv file.
    Now I'd like to have a dropdown-menu to choose which user should be created.
    So i want the first column of the csv displayed in the Dropdown.
    When a option gets choosen the script should read the rest of the information out of the .csv-file and create the user with it.
    i got some parts to create a dropdown and to create local users via .csv, but my limited powershell knowledge keeps me from putting it to one piece.

    Hi Yannick Hassler,
    To create local users with properties listed in a csv file, and also add the users to a local group, please refer to the script below:
    import-csv d:\3.csv | foreach{
    $server=[adsi]"WinNT://$env:computername"
    $user=$server.Create("User",$_.name)
    $user.SetPassword($_.password)
    $user.SetInfo()
    # add extra info
    $user.Put('Description',$_.description)
    $user.SetInfo()
    # add user to mandatory local group
    $group = $_.group
    $group=[adsi]"WinNT://$env:computername/$group"
    $group.Add($user.path)
    # add users to other groups
    Please also save your .csv file d:\3.csv like this :
    Name
    password
    group
    description
    TUTTLSX
    Password
    Users
    Test user
    annaretu
    Password
    Users
    Test user11
    I hope this helps.

Maybe you are looking for