08-05-2015 08:54 AM
Hi,
We have been using the UnityAPI for some time to do user administration tasks (lock/unlock/add to group, create account, etc). Since upgrading to OnBase 14 we have noticed that there is a delay when doing these tasks. ie: If I create a new account through the Unity API and then try and go back to access that account I get an exception that is does not exist and at the same time if I attempt to create the account again it tells me the account already exists. Same thing for adding a user to a group, I can add the user to a group but if I go back and query that user for the groups they are a member of it does not show the newly added group and attempting to add them again throws an exception. Looking at the user in config they are already a member of the group. If I wait a few minutes after performing the user administration task then the UnityAPI returns the expected results.
Has anyone else noticed similar behavior?
Thanks
Anthony
08-05-2015 01:56 PM
Hi Anthony,
Users which are retrieved through the Core.GetUser method are stored in a cache which is refreshed every 15 minutes. If you perform a user administration task you may not see your changes immediately, since the cache has not yet been refreshed.
The UserAdministration.GetUsers method does not cache users, and should always return up to date user objects. However, it can only be used to retrieve users which the current user has rights to administer.
Let me know if you have any more questions!
Chris
08-05-2015 01:56 PM
Hi Anthony,
Users which are retrieved through the Core.GetUser method are stored in a cache which is refreshed every 15 minutes. If you perform a user administration task you may not see your changes immediately, since the cache has not yet been refreshed.
The UserAdministration.GetUsers method does not cache users, and should always return up to date user objects. However, it can only be used to retrieve users which the current user has rights to administer.
Let me know if you have any more questions!
Chris
08-05-2015 02:17 PM
08-05-2015 02:56 PM
06-13-2016 07:03 AM
Does this 15 minute delay still hold true for OnBase 15? I am experiencing the same symptoms as the OP but we've recently upgraded to 15. Thank you.
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.