How to get User Roles for different available companies
Recently i come to a user requirement, they need all employees details with they roles and permission within different companies.
So here the code to fetch respective details in text file.
userInfo.networkAlias,userInfo.company,SecurityUserRole.User, SecurityRole .Name,con2StrUnlimited(cont, ',')));
You can fetch your records in Excel file also by modify your code.