Forum Discussion

NehaRana's avatar
12 years ago
Solved

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,

2 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    12 years ago

    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,