Re: [Dev] [WSO2 IS] SCIM call to create a role with permissions

2017-01-11 Thread Dilshani Subasinghe
Hi Hanen,

Your cURL command use "admin" permission to make the call and not to add
permissions to your group. As u create groups with basic authentication,
you may not add different permissions via the SCIM call. Even though its
call as roles, it will be map with groups in WSO2 IS.

Reference: https://docs.wso2.com/display/IS520/SCIM+APIs

Regards,
Dilshani


On Tue, Jan 10, 2017 at 10:42 PM, Hanen Ben Rhouma 
wrote:

> Hi,
>
> Is it possible to create a role with a list of permissions through SCIM ?
> I created one with this command
>
> curl -v -k --user admin:admin --data '{"displayName":
> "TenantAdmin","members": 
> [{"value":"09f55b8d-9a94-484c-9fff-09e02013167a","hanen":
> "hanen"}]}' --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
> but the result is stripped of any kind of permission, is it possible to
> assign them through such calls ?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

Dilshani Subasinghe
Software Engineer - QA *|* WSO2
lean *|* enterprise *|* middleware

Mobile : +94773375185
Blog: dilshani.me


___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] SCIM call to create a role with permissions

2017-01-10 Thread Chaminda Jayawardena
Hi Hanen,

You may use RemoteAuthorizationManager API [1] for assigning permissions to
roles.

[1] https://docs.wso2.com/display/IS520/Managing+Permissions+with+APIs

On Tue, Jan 10, 2017 at 10:42 PM, Hanen Ben Rhouma 
wrote:

> Hi,
>
> Is it possible to create a role with a list of permissions through SCIM ?
> I created one with this command
>
> curl -v -k --user admin:admin --data '{"displayName":
> "TenantAdmin","members": 
> [{"value":"09f55b8d-9a94-484c-9fff-09e02013167a","hanen":
> "hanen"}]}' --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
> but the result is stripped of any kind of permission, is it possible to
> assign them through such calls ?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards

*Chaminda Jayawardena*
Senior Software Engineer - QA
WSO2 Inc. - http://wso2.com
+94-77-7725234
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [WSO2 IS] SCIM call to create a role with permissions

2017-01-10 Thread Hanen Ben Rhouma
Hi,

Is it possible to create a role with a list of permissions through SCIM ?
I created one with this command

curl -v -k --user admin:admin --data '{"displayName":
"TenantAdmin","members":
[{"value":"09f55b8d-9a94-484c-9fff-09e02013167a","hanen": "hanen"}]}'
--header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Groups

but the result is stripped of any kind of permission, is it possible to
assign them through such calls ?


Regards,
Hanen
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev