Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-12-07 Thread Nirodha Gallage
Hi Isura,



On Thu, Nov 9, 2017 at 10:28 AM, Isura Karunaratne  wrote:

>
>
> On Thu, Nov 9, 2017 at 10:14 AM, Godwin Shrimal  wrote:
>
>> I guess using SCIM API, create a group of required users and delete the
>> group is not a right approach. What Ushani want to is to delete selected
>> set of users. As Isuru mentioned current C4 version doesn't support
>> deleting bulk users. So you have following options.
>>
>
> Yes. But, we should be able to delete multiple users at once using SCIM2
> bulk endpoint. [1]
>
> [1] https://github.com/wso2/charon/blob/master/modules/charo
> n-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequ
> estProcessor.java
>

​Can you confirm whether this is supported. There is a support ticket[2]
with the same request. Can we confirm to the customer that it is supported.
In another thread 'Bulk user deletion using SCIM in WSO2 Identity server'
Nilasini has tried out the scenario but have failed, so have you tested
this, and can confirm?

[2] https://support.wso2.com/jira/browse/DAISTECHDEV-31​

Thanks,
Nirodha

>
> Thanks
> Isura.
>
>>
>> 1. Call deletUser method in admin service and iterately delete required
>> users.
>> 2. Since #1 have multiple network calls, you can create a custom service
>> with *deleteUsers *method, that method calls *deleteUser *method in User
>> core and delete required users.
>>
>>
>> Thanks
>> Godwin
>>
>> On Thu, Nov 9, 2017 at 9:56 AM, Ushani Balasooriya 
>> wrote:
>>
>>> Thanks Isura and Irham,
>>>
>>> I think still I need to create a group in SCIM call more like a role.
>>> Then I can even use *addRemoveUsersOfRole *in admin services*. *My
>>> requirement was to delete selected users belong to different roles.
>>>
>>> I think what Isura has mentioned is an option to proceed. But doesnt it
>>> make multiple service calls?
>>>
>>> On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne 
>>> wrote:
>>>
 Hi Ushani,



 On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
 wrote:

> Hi IAM Team,
>
> During the implementation of a third party web app to manage users, I
> wanted to have a feature where I can select few users and delete them at
> once.
>
> Then I noticed in our admin services we have only below methods to
> delete users in our *UserAdmin* service.
>
> - *addRemoveUsersOfRole* - Delete users only in a particular role
> - *deleteUser* - Delete one selected user
>
> In *deleteUser* method allow only one user to delete.
>
> Can you please advice whether this is designed and implemented due to
> any particular reason or is it a lacking feature in our system? Or is 
> there
> any other mechanism for me to delete set of users at once?
>

 C4 user core APIs does not support delete multiple users at once. You
 can loop the deleteUser API to delete set of users.

 Thanks
 Isura.

>
> Appreciate your quick response.
>
> Thanks,
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


 --

 *Isura Dilhara Karunaratne*
 Associate Technical Lead | WSO2
 Email: is...@wso2.com
 Mob : +94 772 254 810 <+94%2077%20225%204810>
 Blog : http://isurad.blogspot.com/




>>>
>>>
>>> --
>>> *Ushani Balasooriya*
>>> Associate Technical Lead - EE;
>>> WSO2 Inc; http://www.wso2.com/.
>>> Mobile; +94772636796
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Associate Technical Lead | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 

*Nirodha Gallage*
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078

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


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Godwin Shrimal
I guess using SCIM API, create a group of required users and delete the
group is not a right approach. What Ushani want to is to delete selected
set of users. As Isuru mentioned current C4 version doesn't support
deleting bulk users. So you have following options.

1. Call deletUser method in admin service and iterately delete required
users.
2. Since #1 have multiple network calls, you can create a custom service
with *deleteUsers *method, that method calls *deleteUser *method in User
core and delete required users.


Thanks
Godwin

On Thu, Nov 9, 2017 at 9:56 AM, Ushani Balasooriya  wrote:

> Thanks Isura and Irham,
>
> I think still I need to create a group in SCIM call more like a role. Then
> I can even use *addRemoveUsersOfRole *in admin services*. *My requirement
> was to delete selected users belong to different roles.
>
> I think what Isura has mentioned is an option to proceed. But doesnt it
> make multiple service calls?
>
> On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:
>
>> Hi Ushani,
>>
>>
>>
>> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
>> wrote:
>>
>>> Hi IAM Team,
>>>
>>> During the implementation of a third party web app to manage users, I
>>> wanted to have a feature where I can select few users and delete them at
>>> once.
>>>
>>> Then I noticed in our admin services we have only below methods to
>>> delete users in our *UserAdmin* service.
>>>
>>> - *addRemoveUsersOfRole* - Delete users only in a particular role
>>> - *deleteUser* - Delete one selected user
>>>
>>> In *deleteUser* method allow only one user to delete.
>>>
>>> Can you please advice whether this is designed and implemented due to
>>> any particular reason or is it a lacking feature in our system? Or is there
>>> any other mechanism for me to delete set of users at once?
>>>
>>
>> C4 user core APIs does not support delete multiple users at once. You can
>> loop the deleteUser API to delete set of users.
>>
>> Thanks
>> Isura.
>>
>>>
>>> Appreciate your quick response.
>>>
>>> Thanks,
>>> --
>>> *Ushani Balasooriya*
>>> Associate Technical Lead - EE;
>>> WSO2 Inc; http://www.wso2.com/.
>>> Mobile; +94772636796
>>>
>>>
>>
>>
>> --
>>
>> *Isura Dilhara Karunaratne*
>> Associate Technical Lead | WSO2
>> Email: is...@wso2.com
>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>> Blog : http://isurad.blogspot.com/
>>
>>
>>
>>
>
>
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Isura Karunaratne
Hi Ushani,



On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya  wrote:

> Hi IAM Team,
>
> During the implementation of a third party web app to manage users, I
> wanted to have a feature where I can select few users and delete them at
> once.
>
> Then I noticed in our admin services we have only below methods to delete
> users in our *UserAdmin* service.
>
> - *addRemoveUsersOfRole* - Delete users only in a particular role
> - *deleteUser* - Delete one selected user
>
> In *deleteUser* method allow only one user to delete.
>
> Can you please advice whether this is designed and implemented due to any
> particular reason or is it a lacking feature in our system? Or is there any
> other mechanism for me to delete set of users at once?
>

C4 user core APIs does not support delete multiple users at once. You can
loop the deleteUser API to delete set of users.

Thanks
Isura.

>
> Appreciate your quick response.
>
> Thanks,
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Isura Karunaratne
On Thu, Nov 9, 2017 at 10:14 AM, Godwin Shrimal  wrote:

> I guess using SCIM API, create a group of required users and delete the
> group is not a right approach. What Ushani want to is to delete selected
> set of users. As Isuru mentioned current C4 version doesn't support
> deleting bulk users. So you have following options.
>

Yes. But, we should be able to delete multiple users at once using SCIM2
bulk endpoint. [1]

[1] https://github.com/wso2/charon/blob/master/modules/
charon-core/src/main/java/org/wso2/charon3/core/protocol/
BulkRequestProcessor.java

Thanks
Isura.

>
> 1. Call deletUser method in admin service and iterately delete required
> users.
> 2. Since #1 have multiple network calls, you can create a custom service
> with *deleteUsers *method, that method calls *deleteUser *method in User
> core and delete required users.
>
>
> Thanks
> Godwin
>
> On Thu, Nov 9, 2017 at 9:56 AM, Ushani Balasooriya 
> wrote:
>
>> Thanks Isura and Irham,
>>
>> I think still I need to create a group in SCIM call more like a role.
>> Then I can even use *addRemoveUsersOfRole *in admin services*. *My
>> requirement was to delete selected users belong to different roles.
>>
>> I think what Isura has mentioned is an option to proceed. But doesnt it
>> make multiple service calls?
>>
>> On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:
>>
>>> Hi Ushani,
>>>
>>>
>>>
>>> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
>>> wrote:
>>>
 Hi IAM Team,

 During the implementation of a third party web app to manage users, I
 wanted to have a feature where I can select few users and delete them at
 once.

 Then I noticed in our admin services we have only below methods to
 delete users in our *UserAdmin* service.

 - *addRemoveUsersOfRole* - Delete users only in a particular role
 - *deleteUser* - Delete one selected user

 In *deleteUser* method allow only one user to delete.

 Can you please advice whether this is designed and implemented due to
 any particular reason or is it a lacking feature in our system? Or is there
 any other mechanism for me to delete set of users at once?

>>>
>>> C4 user core APIs does not support delete multiple users at once. You
>>> can loop the deleteUser API to delete set of users.
>>>
>>> Thanks
>>> Isura.
>>>

 Appreciate your quick response.

 Thanks,
 --
 *Ushani Balasooriya*
 Associate Technical Lead - EE;
 WSO2 Inc; http://www.wso2.com/.
 Mobile; +94772636796


>>>
>>>
>>> --
>>>
>>> *Isura Dilhara Karunaratne*
>>> Associate Technical Lead | WSO2
>>> Email: is...@wso2.com
>>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>>> Blog : http://isurad.blogspot.com/
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Ushani Balasooriya*
>> Associate Technical Lead - EE;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Ushani Balasooriya
Thanks Isura and Irham,

I think still I need to create a group in SCIM call more like a role. Then
I can even use *addRemoveUsersOfRole *in admin services*. *My requirement
was to delete selected users belong to different roles.

I think what Isura has mentioned is an option to proceed. But doesnt it
make multiple service calls?

On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:

> Hi Ushani,
>
>
>
> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
> wrote:
>
>> Hi IAM Team,
>>
>> During the implementation of a third party web app to manage users, I
>> wanted to have a feature where I can select few users and delete them at
>> once.
>>
>> Then I noticed in our admin services we have only below methods to delete
>> users in our *UserAdmin* service.
>>
>> - *addRemoveUsersOfRole* - Delete users only in a particular role
>> - *deleteUser* - Delete one selected user
>>
>> In *deleteUser* method allow only one user to delete.
>>
>> Can you please advice whether this is designed and implemented due to any
>> particular reason or is it a lacking feature in our system? Or is there any
>> other mechanism for me to delete set of users at once?
>>
>
> C4 user core APIs does not support delete multiple users at once. You can
> loop the deleteUser API to delete set of users.
>
> Thanks
> Isura.
>
>>
>> Appreciate your quick response.
>>
>> Thanks,
>> --
>> *Ushani Balasooriya*
>> Associate Technical Lead - EE;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Associate Technical Lead | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-08 Thread Isura Karunaratne
On Thu, Nov 9, 2017 at 9:56 AM, Ushani Balasooriya  wrote:

> Thanks Isura and Irham,
>
> I think still I need to create a group in SCIM call more like a role. Then
> I can even use *addRemoveUsersOfRole *in admin services*. *My requirement
> was to delete selected users belong to different roles.
>
> I think what Isura has mentioned is an option to proceed. But doesnt it
> make multiple service calls?
>

Yes. It does multiple service calls. We can create a custom SOAP/REST
service and delete users though a single service call.

You can also try SCIM2 bulk endpoint. [1].

[1] https://docs.wso2.com/display/ISCONNECTORS/Configuring+SCIM+
2.0+Provisioning+Connector#ConfiguringSCIM2.0ProvisioningConnector-/
BulkEndpoint


Thanks
Isura.

>
> On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:
>
>> Hi Ushani,
>>
>>
>>
>> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
>> wrote:
>>
>>> Hi IAM Team,
>>>
>>> During the implementation of a third party web app to manage users, I
>>> wanted to have a feature where I can select few users and delete them at
>>> once.
>>>
>>> Then I noticed in our admin services we have only below methods to
>>> delete users in our *UserAdmin* service.
>>>
>>> - *addRemoveUsersOfRole* - Delete users only in a particular role
>>> - *deleteUser* - Delete one selected user
>>>
>>> In *deleteUser* method allow only one user to delete.
>>>
>>> Can you please advice whether this is designed and implemented due to
>>> any particular reason or is it a lacking feature in our system? Or is there
>>> any other mechanism for me to delete set of users at once?
>>>
>>
>> C4 user core APIs does not support delete multiple users at once. You can
>> loop the deleteUser API to delete set of users.
>>
>> Thanks
>> Isura.
>>
>>>
>>> Appreciate your quick response.
>>>
>>> Thanks,
>>> --
>>> *Ushani Balasooriya*
>>> Associate Technical Lead - EE;
>>> WSO2 Inc; http://www.wso2.com/.
>>> Mobile; +94772636796
>>>
>>>
>>
>>
>> --
>>
>> *Isura Dilhara Karunaratne*
>> Associate Technical Lead | WSO2
>> Email: is...@wso2.com
>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>> Blog : http://isurad.blogspot.com/
>>
>>
>>
>>
>
>
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-08 Thread Ushani Balasooriya
Thanks for the clarification Godwin and Isura.

On Thu, Nov 9, 2017 at 10:14 AM, Godwin Shrimal  wrote:

> I guess using SCIM API, create a group of required users and delete the
> group is not a right approach. What Ushani want to is to delete selected
> set of users. As Isuru mentioned current C4 version doesn't support
> deleting bulk users. So you have following options.
>
> 1. Call deletUser method in admin service and iterately delete required
> users.
> 2. Since #1 have multiple network calls, you can create a custom service
> with *deleteUsers *method, that method calls *deleteUser *method in User
> core and delete required users.
>
>
> Thanks
> Godwin
>
> On Thu, Nov 9, 2017 at 9:56 AM, Ushani Balasooriya 
> wrote:
>
>> Thanks Isura and Irham,
>>
>> I think still I need to create a group in SCIM call more like a role.
>> Then I can even use *addRemoveUsersOfRole *in admin services*. *My
>> requirement was to delete selected users belong to different roles.
>>
>> I think what Isura has mentioned is an option to proceed. But doesnt it
>> make multiple service calls?
>>
>> On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:
>>
>>> Hi Ushani,
>>>
>>>
>>>
>>> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
>>> wrote:
>>>
 Hi IAM Team,

 During the implementation of a third party web app to manage users, I
 wanted to have a feature where I can select few users and delete them at
 once.

 Then I noticed in our admin services we have only below methods to
 delete users in our *UserAdmin* service.

 - *addRemoveUsersOfRole* - Delete users only in a particular role
 - *deleteUser* - Delete one selected user

 In *deleteUser* method allow only one user to delete.

 Can you please advice whether this is designed and implemented due to
 any particular reason or is it a lacking feature in our system? Or is there
 any other mechanism for me to delete set of users at once?

>>>
>>> C4 user core APIs does not support delete multiple users at once. You
>>> can loop the deleteUser API to delete set of users.
>>>
>>> Thanks
>>> Isura.
>>>

 Appreciate your quick response.

 Thanks,
 --
 *Ushani Balasooriya*
 Associate Technical Lead - EE;
 WSO2 Inc; http://www.wso2.com/.
 Mobile; +94772636796


>>>
>>>
>>> --
>>>
>>> *Isura Dilhara Karunaratne*
>>> Associate Technical Lead | WSO2
>>> Email: is...@wso2.com
>>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>>> Blog : http://isurad.blogspot.com/
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Ushani Balasooriya*
>> Associate Technical Lead - EE;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-08 Thread Irham Iqbal
Hi Ushani,

I think you can use the SCIM APIs[1] to do this.

You can create a SCIM group with selected users first and delete that user
SCIM group, there are APIs for those two operations.

[1] https://docs.wso2.com/display/IS530/SCIM+APIs

Thanks,
Iqbal

On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya  wrote:

> Hi IAM Team,
>
> During the implementation of a third party web app to manage users, I
> wanted to have a feature where I can select few users and delete them at
> once.
>
> Then I noticed in our admin services we have only below methods to delete
> users in our *UserAdmin* service.
>
> - *addRemoveUsersOfRole* - Delete users only in a particular role
> - *deleteUser* - Delete one selected user
>
> In *deleteUser* method allow only one user to delete.
>
> Can you please advice whether this is designed and implemented due to any
> particular reason or is it a lacking feature in our system? Or is there any
> other mechanism for me to delete set of users at once?
>
> Appreciate your quick response.
>
> Thanks,
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

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