Forum Discussion

Nathan's avatar
Nathan
Ideator I
6 years ago

Create User When Identity Exists?

Good day all.  I am running into a problem when trying to create a User.  I have an Identity that is used during Lifecycle Released state for documents.  I would like this Identity to send an e-mail to a specific account.  I figured that I would create a User to add the e-mail to, but when I create the User I receive a message stating that I can't because the Identity already exists.  How can I fix this issue?  Also, how can I associate the two?  Thank you for the help.

4 Replies

  • Hi Nathan,

    Your existing identity is group identity(is_alias=0) ?

    Create users with different names (set email ids for every user) & add users identity under your existing group identity.

    While sending email  fetch all users from group identity & send email.

    Regards,

    Suhas

    • Nathan's avatar
      Nathan
      Ideator I

      Suhas,

      Thank you for your suggestion.  I want to associate the Identity with a user directly.  I found that there is an Alias that associates the two, but I can't figure out how to change the User or Identity with the Alias. 

      • Gopikrishnan's avatar
        Gopikrishnan
        Ideator I

        Hi Nathan

        Using below AML query you can connect User and Identity 

        <AML>
          <Item type="User" id="" action="add" doGetItem="0">   // Random GUID
            <login_name></login_name> // User Login Name
            <first_name></first_name>
            <last_name></last_name>
            <logon_enabled></logon_enabled> // Default 1
            <owned_by_id></owned_by_id> // Existing Identity GUID 
            <email></email>
            <Relationships>
              <Item type="Alias" id="" action="add"> // Random GUID
                <related_id></related_id>  // Existing Identity GUID 
                <source_id></source_id> // Above User Random GUID
              </Item>
            </Relationships>
          </Item>
        </AML>

        Example Query 

        <AML>
          <Item type="User" id="21928F9AC5DB44A4BB8A9FC3273FA85F" action="add" doGetItem="0">
            <login_name>existinguser</login_name>
            <first_name>Existing</first_name>
            <last_name>User</last_name>
            <logon_enabled>1</logon_enabled>
            <owned_by_id> F2C3755755C44EB6B81AFEEF1C49473E</owned_by_id>
            <email>existinguser@gmail.com</email>
            <Relationships>
              <Item type="Alias" id="7766F3F302644E128C60A88F7DC9863E" action="add">
                <related_id>F2C3755755C44EB6B81AFEEF1C49473E</related_id>
                <source_id>21928F9AC5DB44A4BB8A9FC3273FA85F</source_id>
              </Item>
            </Relationships>
          </Item>
        </AML>

        Thank You

        Gopikrishnan R