+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How check for the user in a particular role?

How check for the user in a particular role?

2 posts, 1 answered
  1. Thavarajah
    Thavarajah avatar
    48 posts
    Registered:
    15 Oct 2010
    30 Dec 2010
    Link to this post
    Hi Team,

    I want to check is there any out if the box method exists in Sitefinity 3.x API to check for a user in a particular role?
    our defaultProvider for roles id "Sitefinity".

    Please advice me

    Best regards,
    Vimal
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    30 Dec 2010
    Link to this post
    Hi Thavarajah,

    You can use UserManager.GetCurrentUserRoles() or /and IsUserInRole(string roleName)

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
2 posts, 1 answered