简体   繁体   English

Microsoft graph c# sdk 如何将用户分配给应用程序

[英]Microsoft graph c# sdk how to assign user to application

I am using Microsoft.我正在使用微软。 Graph -Version 1.15.0 SDK with.Net core application, not able to find any method using which I can assign the application to the user which I have created. Graph -Version 1.15.0 SDK with.Net core application, 无法找到任何可以将应用程序分配给我创建的用户的方法。 I am aware with Graph API to assign the application to the user, but looking to SDK implementation for same.我知道使用 Graph API 将应用程序分配给用户,但正在寻找相同的 SDK 实现。 I have tried to look on Github documentation but all are with Graph API I am looking with SDK graphClient.Users["userId"].App?我曾尝试查看 Github 文档,但都使用 Graph API 我正在使用 SDK graphClient.Users["userId"].App? Microsoft.Graph SDK method to assign the application to the user将应用程序分配给用户的 Microsoft.Graph SDK 方法

You have to use below method to add application user using graph sdk您必须使用以下方法使用图形 sdk 添加应用程序用户

 public Microsoft.Graph.IUserManagedAppRegistrationsCollectionWithReferencesPage ManagedAppRegistrations { get; set; }
        Member of Microsoft.Graph.User

Summary:
Gets or sets managed app registrations. Zero or more managed app registrations that belong to the user.

from object browser, you can take a look of all the available operations in user entity从对象浏览器,您可以查看用户实体中的所有可用操作

在此处输入图片说明

Hope it helps.希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM