07-20-2021 12:21 PM
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);
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.