Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Kentico AD Import Utility assign role from AD Department field View modes: 
User avatar
Member
Member
edwincwong-gmail - 12/5/2013 1:55:10 AM
   
Kentico AD Import Utility assign role from AD Department field
Hi,

I would like to use the AD Import utility to import AD users to Kentico. Is there anyway with the utility to automatically assign role for each import user base on the department field?

Thanks!

Regards,
Edwin

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/19/2013 5:37:30 AM
   
RE:Kentico AD Import Utility assign role from AD Department field
Hello Edwin,

As you can see also in the Dev Guide, .e.g Step 9: Using the AD Import Wizard, this utility doesn't support any conditional roles associations yet.

What you can do is e.g. to create a Global Event which will be fired when the New User is created (OnBeforeSave, OnAfterSave event.) and then change the role according on the Department or whatever you want.

Best regards,
Martin Danko

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/19/2013 6:39:00 AM
   
RE:Kentico AD Import Utility assign role from AD Department field
Edwin,

What I've done in the past is the simple user import and then created a query to get all the roles a person belongs to and use the standard import toolkit utility to import that relationship. Seems to work pretty good, just a bit more work on our end to get it to function as expected.

Brenden