Hi all,
I've been trying to follow the SCIM documentation [1] to manage user and
groups but apparently the groups members are not visualized after the
group creation phase. These are my steps:
1) Create user
|curl -v -k --user admin:admin --data
||"{"||schemas||":[],"||name||":{"||familyName||":"||gunasinghe||","||givenName||":"||hasinitg||"},"||userName||":"||hasinitg||","||password||":"||hasinitg||","||emails||":[{"||primary||":true,"||value||":"||hasini_home.com||","||type||":"||home||"},{"||value||":"||hasini_work.com||","||type||":"||work||"}]}"||--header
||"Content-Type:application/json"||https:||//localhost:9443/wso2/scim/Users
OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
"https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370",
"lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
"value": "hasini_home.com" }, { "type": "work", "value":
"hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName":
"hasinitg", "familyName": "gunasinghe" }, "schemas": [
"urn:scim:schemas:core:1.0" ], "id":
"c3561007-5174-4b7d-9d6f-db523164a370" } 2) Create group adding the user
|curl -k --user admin:admin --data "{"displayName":
"engineer","members":
[{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display":
"hasinitg"}]}" --header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Groups
OUTPUT
{
"meta": {
"location":
"https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a",
"created": "2016-01-20T13:47:20",
"lastModified": "2016-01-20T13:47:20"
},
"members": [
{
"display": "hasinitg",
"value": "c3561007-5174-4b7d-9d6f-db523164a370"
}
],
"displayName": "PRIMARY/engineer",
"schemas": [
"urn:scim:schemas:core:1.0"
],
"id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
}
As you can notice, in member the hasinitg user is shown.
3) List groups (missing the members field)
curl -k --user admin:admin --header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Groups
OUTPUT
{
"Resources": [
{
"meta": {
"location":
"https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a",
"created": "2016-01-20T13:47:20",
"lastModified": "2016-01-20T13:47:20"
},
"displayName": "PRIMARY/engineer",
"id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
}
],
"totalResults": 1,
"schemas": [
"urn:scim:schemas:core:1.0"
]
}
Any one of you have any similar experience?, as it is stated in the
documentation [1], this output should show the members field.
Thanks & Regards,
[1] - https://docs.wso2.com/display/IS510/SCIM+APIs
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev