GetRolesForUser按用户ID [英] GetRolesForUser by user id
本文介绍了GetRolesForUser按用户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么没有方法通过用户ID获取用户角色.我不想使用名字.所以我只是想知道我是否必须写自己的书或已经有人做过?
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 ?
推荐答案
似乎没有 ^ ],您可以在其中使用ID.用户名有什么问题?如果您有用户ID,就不能获得它的相应用户名?如果是这样,请获取您自己的lil代码以获取用户ID并在内部调用MS API.
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.
这篇关于GetRolesForUser按用户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文