Role(s) a user belongs to

Jan 11, 2011 at 10:22 AM

I am looking for a way to determine which role or roles a logged in user belongs to. I have looked at all services but can not find method to get a list of roles for a user.

Developer
Jan 11, 2011 at 2:26 PM

UserRolesPart is welded by default onto User object, so basically what you need is to cast your IUser/UserPart object to UserRolesPart by using user.As<UserRolesPart>(). And that's it:)

- Piotr