microsoft-graph-api - Microsoft Graph - any way to "share" my application
问题描述
I have created new Application on page: https://apps.dev.microsoft.com/#/appList
using AppId and AppKey I can get token and call Microsoft Graph methods. It works fine. But it works only for my admin console, so, if I call method to add new domain it adds new domain to my admin console. Our business model creates admin console per our client. And we need to setup individual domains for their admin consoles etc.
I need to call Microsoft Graph add domain method to add domain to another admin console! I see a solution is creating one more application per client, under their admin credentials, and then call Microsoft Graph with AppId/AppKey newly created individual Application. But I need to do it automatically and no API to do it (as I understand).
Any way to use one common Application and call Microsoft Graph methods to do actions inside another admin console?
Thank you!
解决方案
When creating your app registration (in the new preview application registration pages in the Azure AD portal) you need to select the following option:
Accounts in any organizational directory
This will allow users in another tenant to consent to using your application. This will mean you can use your app id and secret with other tenants.
推荐阅读
- javascript - 如何制作删除按钮以从数组中删除书签?
- javascript - innerHTML 不会覆盖
- sql - 使用条件语句进行分区
- swift - 无法将“浮点”类型的值转换为预期的参数类型“绑定”
' 错误 Swift 5.2 - postgresql - 升级enterprisedb postgresl版本
- pytorch - 我们支持的最低 cuda 能力是 3.5
- r - 在 R 中重新排序李克特图
- python - 如何使用 BeautifulSoup 获取数据价格?
- python - 如果您在多核网格搜索中为 CV 拆分器提供随机种子,是否保证拆分在内核之间是相同的?
- java - 使用 Java API 的 TensorFlow 推理非常慢