We can get the roles of an SPUser by SPUser.Roles
. But it will return SPRoleCollection
. If we want to list all the roles we need to loop that.
For example an User has "Full Control","Read","Design" we need to loop the SPRoleCollection object.
How can i get all the roles as a string with ',' separator?