如何通过azure graph API获取登录用户的目录角色(全局管理员,用户) [英] How do I get directory role (global admin , user) of logged in user via azure graph API

查看:127
本文介绍了如何通过azure graph API获取登录用户的目录角色(全局管理员,用户)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello, i am new to asp.net and i am developing an application where i am suppose to get the directory role (global admin , user ) from azure for the logged in user and restrict access to pages unless the user is a global admin. how can this be achieved as i could not find any means to check if the user is global admin or not.





什么我试过了:



根据图api文档尝试了用户类型属性和成员属性,但这些都不合适意味着获得上述问题的结果。任何帮助将不胜感激

谢谢你



What I have tried:

tried the "user type " attribute and the "member of" attribute as per the graph api documentation but these are not the appropriate means to get the result for above stated problem. any help will be appreciated
thank you

推荐答案

谷歌搜索有一些有趣的链接:如何通过azure graph API获取登录用户的目录角色(全局管理员,用户) - Google搜索 [ ^ ]
Google Search has some interesting links for you: How do I get directory role (global admin , user) of logged in user via azure graph API - Google Search[^]


这篇关于如何通过azure graph API获取登录用户的目录角色(全局管理员,用户)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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