[Dev] Using UserAdminStub to get users names of a role
Hi all, I used UserAdminStub's getUsersOfRole method to do the $subject. It returns user list as a FlaggedName array. But problem is, this FlaggedName array contains all the user including users who don't belong to that role. But by checking flaggedName.getSelected() method I can validate whether particular user is in that role or not. But this requires additional iteration. Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0 and observed the same. Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I can't use this with BPS since RemoteUserStoreManagerService admin service is not available by default. Thanks, Hasitha. -- Hasitha Aravinda, Software Engineer, WSO2 Inc. Email: hasi...@wso2.com Mobile: +94 71 8 210 200 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Using UserAdminStub to get users names of a role
Hi, IMO this is an incorrect behavior. Can you try sending zero for the 'limit' variable? Regards, Venura On Fri, Jan 24, 2014 at 9:39 AM, Hasitha Aravinda hasi...@wso2.com wrote: Hi all, I used UserAdminStub's getUsersOfRole method to do the $subject. It returns user list as a FlaggedName array. But problem is, this FlaggedName array contains all the user including users who don't belong to that role. But by checking flaggedName.getSelected() method I can validate whether particular user is in that role or not. But this requires additional iteration. Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0 and observed the same. Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I can't use this with BPS since RemoteUserStoreManagerService admin service is not available by default. Thanks, Hasitha. -- Hasitha Aravinda, Software Engineer, WSO2 Inc. Email: hasi...@wso2.com Mobile: +94 71 8 210 200 -- Senior Software Engineer Mobile: +94 71 82 300 20 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Using UserAdminStub to get users names of a role
On Fri, Jan 24, 2014 at 9:57 AM, Venura Kahawala ven...@wso2.com wrote: Hi, IMO this is an incorrect behavior. Can you try sending zero for the 'limit' variable? Regards, Venura On Fri, Jan 24, 2014 at 9:39 AM, Hasitha Aravinda hasi...@wso2.comwrote: Hi all, I used UserAdminStub's getUsersOfRole method to do the $subject. It returns user list as a FlaggedName array. But problem is, this FlaggedName array contains all the user including users who don't belong to that role. But by checking flaggedName.getSelected() method I can validate whether particular user is in that role or not. But this requires additional iteration. Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0 and observed the same. Yes.. i guess. UserAdmin stub has been written thinking about the UI aspect.. Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I can't use this with BPS since RemoteUserStoreManagerService admin service is not available by default. Yes.. this is the better approach, if you need to call the user store functions from external web application or system. You can install this feature [1]. Basically It just exposes the user store manager interface as web service API. [1] http://soasecurity.org/2013/12/15/remote-user-management-feature-in-wso2-carbon-products/ Thanks, Asela. Thanks, Hasitha. -- Hasitha Aravinda, Software Engineer, WSO2 Inc. Email: hasi...@wso2.com Mobile: +94 71 8 210 200 -- Senior Software Engineer Mobile: +94 71 82 300 20 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, Asela ATL Mobile : +94 777 625 933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Using UserAdminStub to get users names of a role
Thanks Asela, Hasitha On Thu, Jan 23, 2014 at 11:41 PM, Asela Pathberiya as...@wso2.com wrote: On Fri, Jan 24, 2014 at 9:57 AM, Venura Kahawala ven...@wso2.com wrote: Hi, IMO this is an incorrect behavior. Can you try sending zero for the 'limit' variable? Regards, Venura On Fri, Jan 24, 2014 at 9:39 AM, Hasitha Aravinda hasi...@wso2.comwrote: Hi all, I used UserAdminStub's getUsersOfRole method to do the $subject. It returns user list as a FlaggedName array. But problem is, this FlaggedName array contains all the user including users who don't belong to that role. But by checking flaggedName.getSelected() method I can validate whether particular user is in that role or not. But this requires additional iteration. Is this default behavior ? I verified with both carbon 4.0.0 and 4.2.0 and observed the same. Yes.. i guess. UserAdmin stub has been written thinking about the UI aspect.. Is it ok to use RemoteUserStoreManagerServiceStub for this. ? Again I can't use this with BPS since RemoteUserStoreManagerService admin service is not available by default. Yes.. this is the better approach, if you need to call the user store functions from external web application or system. You can install this feature [1]. Basically It just exposes the user store manager interface as web service API. [1] http://soasecurity.org/2013/12/15/remote-user-management-feature-in-wso2-carbon-products/ Thanks, Asela. Thanks, Hasitha. -- Hasitha Aravinda, Software Engineer, WSO2 Inc. Email: hasi...@wso2.com Mobile: +94 71 8 210 200 -- Senior Software Engineer Mobile: +94 71 82 300 20 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, Asela ATL Mobile : +94 777 625 933 -- Hasitha Aravinda, Software Engineer, WSO2 Inc. Email: hasi...@wso2.com Mobile: +94 71 8 210 200 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev