Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why there is no method to get user roles by their ID. I do not want to use name. So I'm just wondering do I have to write my own or somebody else already did it ?
Posted

1 solution

does not seem to have an API[^] where you can use ID. What is wrong with user name? If you have user ID, can't you get it's corresponding user name? If so, get your self 'lil code to take user id and call internally MS API.
 
Share this answer
 
Comments
Xmen Real 23-Aug-10 5:52am    
Getting roles through name would be slower than numeric id.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900