By: Jake Barwell user 10 Feb 2016 at 10:49 a.m. CST

10 Responses
Jake Barwell gravatar
Trying to access some of the SCIM endpoints and getting could not find resource errors. For example ``` HTTP Status 404 - Could not find resource for relative : /oxrust/scim-configuration of full path: https://elasticsso.com/identity/seam/resource/restv1/oxrust/scim-configuration ``` Tried the following endpoints: /.well-known/scim-configuration /identity/seam/resource/restv1/Users/ I have enabled SCIM in the configuration. Any help would be appreciated.

By Michael Schwartz Account Admin 10 Feb 2016 at 3:48 p.m. CST

Michael Schwartz gravatar
Shekhar, can you comment on this?

By Shekhar L. staff 10 Feb 2016 at 10:19 p.m. CST

Shekhar L. gravatar
Hi Jake, Please try https://{domain_name}/identity/seam/resource/restv1/scim/v2/Users/ endpoint url for user. Thanks

By Michael Schwartz Account Admin 11 Feb 2016 at 2:51 p.m. CST

Michael Schwartz gravatar
Also, why does your url say 'oxrust' not 'oxtrust' ? Was that just a typo? Also, the discovery url for scim is: https://<your-hostname>/.well-known/scim-configuration

By Jake Barwell user 13 Feb 2016 at 9:05 a.m. CST

Jake Barwell gravatar
Hi thanks for replies, So when I go to https://<your-hostname>/.well-known/scim-configuration it gives me the following error. I am not typing or have configured the oxrust part. Unless I have somehow changed that value somewhere... ``` HTTP Status 404 - Could not find resource for relative : /oxrust/scim-configuration of full path: https://elasticsso.com/identity/seam/resource/restv1/oxrust/scim-configuration ``` When I go to /identity/seam/resource/restv1/scim/v2/Users/ I get the following error ``` HTTP Status 500 - com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions Property startIndex is present but not specified in @XmlType.propOrder this problem is related to the following location: at private int org.gluu.oxtrust.model.scim2.ListResponse.startIndex at org.gluu.oxtrust.model.scim2.ListResponse Property itemsPerPage is present but not specified in @XmlType.propOrder this problem is related to the following location: at private int org.gluu.oxtrust.model.scim2.ListResponse.itemsPerPage at org.gluu.oxtrust.model.scim2.ListResponse ```

By Shekhar L. staff 16 Feb 2016 at 2:13 a.m. CST

Shekhar L. gravatar
Hi Jake, Have u enabled SCIM in oxTrust GUI: Please share the oxtrust logs.

By Jake Barwell user 16 Feb 2016 at 6:48 a.m. CST

Jake Barwell gravatar
Yes I enabled SCIM via the GUI. When I go to .well-known/scim-configuration I get no entries in the oxtrust log. When I go to /identity/seam/resource/restv1/scim/v2/Users/ I get the following entries in the oxtrust log file. ``` INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,134 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] getting a list of all users from LDAP INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] LDAP person list is not empty INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,136 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,137 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] copying person from GluuPerson to ScimPerson INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] adding ScimPerson to the AllPersonList INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person to be added userid : null INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] person added? : true INFO | jvm 1 | 2016/02/16 12:46:31 | 2016-02-16 12:46:31,138 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] setting schema ```

By Jake Barwell user 16 Feb 2016 at 6:51 a.m. CST

Jake Barwell gravatar
Also when I go to https://elasticsso.com/identity/seam/resource/restv1/oxtrust/scim-configuration That url works fine and returns the expected result so really not sure why /.well-known/scim-configuration/ is trying to send me to oxrust/scim-configuration The return from https://elasticsso.com/identity/seam/resource/restv1/oxtrust/scim-configuration ``` [ { "version" : "1.0", "authorization_supported" : [ "uma" ], "user_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v1/Users", "group_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v1/Groups", "bulk_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v1/Bulk", "user_search_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v1/Users/Search" }, { "version" : "2.0", "authorization_supported" : [ "uma" ], "user_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v2/Users", "group_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v2/Groups", "bulk_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v2/Bulk", "service_provider_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v2/ServiceProviderConfig", "resource_types_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v2/ResourceTypes", "user_search_endpoint" : "https://elasticsso.com/identity/seam/resource/restv1/scim/v2/Users/Search" } ] ```

By Shekhar L. staff 17 Feb 2016 at 9:51 a.m. CST

Shekhar L. gravatar
Hi Jake, Thanks for the logs . We fixed your issue and and it will available in next build. Thanks.

By Jake Barwell user 17 Feb 2016 at 10:20 a.m. CST

Jake Barwell gravatar
Thanks for the reply. Is that both issues that will be fixed and when roughly will the next build be available?

By Mohib Zico staff 21 Feb 2016 at 12:08 p.m. CST

Mohib Zico gravatar
2.4.2 should be released by first of March.