Skip to Content
0
Feb 16, 2022 at 09:08 AM

Getting role of the logged in user

118 Views

Hello Colleagues,

We have requirement to fetch the role assigned to a particular user, I have tried the below code

try{ jQuery.sap.require("sap.ushell.cpv2.services.cloudServices.SiteService"); }catch(oException){ }

But siteservice is not loading, how can we get the user role in CAP v4, is there any other methods available.

Thanks in advance

Regards,

Radha