Hello,
A user can belong to more roles than one, so there is a function for it in our API:
public static DataSet GetUserRoles(
string where,
string orderBy,
int topN,
GeneralConnection conn
)
And you can compare current user's ID in the where condition:
UserRoleInfoProvider.GetUserRoles("UserID = " + CMSContext.CurrentUser.UserID, "", 0, cn);
Best regards,
Jan Hermann