I am trying to use Client from java sdk for Okta to update some user attributes. I am using
Clients.builder() with proper url, clientId, apiKey and scopes. Client is properly communicating with Okta server, reading and setting values from profile attributes.
The problem appears when in meantime, the profile attribute is changed in Okta admin panel. The instance of the client does not see that changes. Even after searching for user again using:
does not help. The values of attributes that I am getting with
user.Profile.getString("attributeName") are from before the change in the panel. I am guessing that this is somehow cached.
The only solution that I found for it is to create a new instance of client. Is there any way to avoid this and refresh the client, cache or the DataStore or something like that?
Thanks in advance!