GetRolesForUser按用户ID [英] GetRolesForUser by user id

查看:122
本文介绍了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 ?

推荐答案

似乎没有
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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆