cancel
Showing results for 
Search instead for 
Did you mean: 

Need to get a list of users missing info and update

Tia_Brott-Silke
Star Contributor
Star Contributor

We are currently on 17 and our SAML SSO does not update the user properties since we moved off ADFS. Until we upgrade, I wanted to write a scheduled script to update the user records (USERACCOUNT) and update the info.

 

What I'm looking for is a UserList (I think) of users missing either real name or email address. Not sure the best way to do that. I have a query or if the API can do this natively that's great too. 

 

// first get a list of all users with no real name or email address
List<UserList> users = new List< Hyland.Unity.UserList>();

????

 

Then I believe the following should work to update them.

for each....

// query source system to get user email and real name

 

then....

User user = unityApp.Core.GetUser(username);

EditableUserProperties userProperties = admServ.CreateEditableUserProperties();
userProperties.EmailAddress = emailaddress;
userProperties.RealName = realname;
unityApplication.Core.UserAdministration.ChangeUserProperties(user, userProperties);

0 REPLIES 0