Skip to main content
1-Visitor
February 5, 2018
Solved

Can we create a user using a trigger or Java code

  • February 5, 2018
  • 1 reply
  • 4036 views

Hi Guys,

 

I need to create a user using a trigger is it possible ?

If yes can you tell me how ?

If no cab you tell me the reason ?

 

Thanks,

Shree

Best answer by Shree

yes, the user will be imported from LDAP, but the account is active only when the user login into the integrity for the 1st time.

For my business:

There will be certain user's how wont use Integrity. Such user data wont be available in the Integrity. So i need to add them into integrity.

1 reply

17-Peridot
February 5, 2018

Sure, you can.

If not part of the trigger bean, you can always call the related API command.

 

Just for interest: why you need to create a user in a trigger? Usually users will get imported from e.g. LDAP.

So you will have to import them or assign them to groups only.

Shree1-VisitorAuthorAnswer
1-Visitor
February 6, 2018

yes, the user will be imported from LDAP, but the account is active only when the user login into the integrity for the 1st time.

For my business:

There will be certain user's how wont use Integrity. Such user data wont be available in the Integrity. So i need to add them into integrity.

17-Peridot
February 6, 2018

Hi,

I am using 2 steps to "Import" a user from LDAP:

1/

integrity editmksdomaingroup --user=<execution user> --hostname=<host> --addMembers=u=<NewUserId> "GroupNameToAddTo"

2/

im importuser --user=<execution user> --hostname=<host> <NewUserId>

 

Then, this user is available in Integrity W&D.

 

Perhaps this helps.

Volker

PS: I could perform also both steps in the UI, but the command line is much much faster 🙂