gilest

API addUserstoRole is slow; can I use PowerShell instead?

Discussion created by gilest on Dec 28, 2012
Latest reply on Jan 2, 2013 by ciava.at
Hi,

I'm working on a hack/fix for my issue described in a post here - http://forums.arcgis.com/threads/73784-How-do-you-access-local-group-users-in-Server-Manager-Security-roles-users and wanted to see if anyone knows if the following will work -

I'm trying to insert a large # of users for our Windows AD user store to a User role call 'AllUsers'.  I've successfully created a litttle .Net console app which uses the API's security/users/getUsers operation to grab a set of users and then security/roles/addUsersToRole operation to add those AD accounts to the AllUsers Role.  I'm grabbing 100 users at a time and it seems kind of slow adding them (about 1-2 minutes). 

What seems to be happening in the background is Server is simply writing a small JSON file in config-store\security\user-roles folder.  If I were to use Powershell to grab my users from AD and create the JSON files in that folder, would Server pick up those edits, or is it doing something else that I'm not aware of?


Thank you,
Terry

Outcomes