By: SENTHILKUMAR DHANAPAL user 01 Aug 2018 at 8:34 a.m. CDT

1 Response
SENTHILKUMAR DHANAPAL gravatar
Hi, I am using gluu 3.1.2 . SCIMClient 3.2.0-SNAPSHOT . while I was searching the user in UMA protected mode, I got the below exception. Caused by: java.util.NoSuchElementException: extension urn:ietf:params:scim:schemas:extension:gluu:2.0:User is not available at org.gluu.oxtrust.model.scim2.User.getExtension(User.java:450) in Java Code , I ahve below code List<Resource> searchUserResponse = scimClient.searchUser(searchUser); if (searchUserResponse != null && searchUserResponse.size() >= 1) { User user = (User) searchUserResponse.get(0); Extension extension = user.getExtension("urn:ietf:params:scim:schemas:extension:gluu:2.0:User"); String Roles = extension.getFieldAsString("roles");

By SENTHILKUMAR DHANAPAL user 01 Aug 2018 at 4:38 p.m. CDT

SENTHILKUMAR DHANAPAL gravatar
input was wrong. after I set the correct filter to search the user. it was working fine