Forum Discussion

NehaRana's avatar
11 years ago

Get the Role

Hello 

 

How can i get the Role or Role ID of the user accessing community  site.What will bethe code for it??

 

Regards,

Neha

  • Hi NehaRana 

     

    For Studio custom components, you can figure out the role of the user via the REST API. In this specific case , user/roles should do the trick for you.

     

    Thanks,

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)

    Hi NehaRana 

     

    For Studio custom components, you can figure out the role of the user via the REST API. In this specific case , user/roles should do the trick for you.

     

    Thanks,