HI Kishanthan,

Yes, calling delete user API will internally delete all(roles, permissions)
data associated with that user. But there is a scenario where we cannot
delete the tenant admin user.
And my question here was, let say if this deleting process breaks at some
point, then it will remain those tenant related(none deleted) data in the
system. shouldn't this deletion process be atomic?

Thank you

On Mon, Feb 16, 2015 at 7:35 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

> Shouldn't calling delete user API will internally delete all (roles,
> permissions) data associated with that user?
>
> On Fri, Feb 13, 2015 at 11:01 AM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> HI all,
>>
>> When adding tenant it creates some of DB level operations sequentially
>> as an *example*,
>> In tenant creation it creates a user, creates user roles, add permissions
>> to the roles and so on
>> when deleting there are few options
>>
>>    1. Delete the role permissions for the user role, delete user roles
>>    for the user finally delete the user
>>    2. Delete  all the users, roles, role permissions data associated to
>>    that tenant
>>
>> what would be the best approach?
>>
>> Thank you
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to