Skip to main content
1-Visitor
Feb 5, 2018 12:41 PM UTC
Solved

Can we create a user using a trigger or Java code

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

ShreeAnswer
1-Visitor
Feb 6, 2018 10:25 AM UTC

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.

8 replies

17-Peridot
Feb 5, 2018 9:56 PM UTC

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.

Translate
Shree1-VisitorAuthorAnswer
1-Visitor
Feb 6, 2018 10:25 AM UTC

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.

Translate
17-Peridot
Feb 6, 2018 3:26 PM UTC

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 🙂

Translate