![](/img/trans.png)
[英]Permissions required for adding an Active Directory account through code
[英]Which permissions are required to be set in azure active directory, to access a user's onedrive business account?
我試圖在Winform應用程序中為一個驅動器業務提供支持。為此,我使用一個驅動器REST API,因為我的應用程序基於3.5框架。此鏈接中提到了一個驅動器認證有4個步驟。我能夠成功完成前兩個步驟,但是在嘗試為登錄用戶發現onedrive業務URL時收到401未經授權的錯誤。在步驟2中,我對發現URL訪問令牌請求獲得了以下響應:
{
"token_type": "Bearer",
"expires_in": "3600",
"scope": "User.Read",
"expires_on": "1453115649",
"not_before": "1453111749",
"resource": "https://api.office.com/discovery/",
"access_token": <a long string>
"refresh_token": <another long string>
}
我認為azure活動目錄中的應用程序權限可能存在一些問題,因此,請讓我知道在azure活動目錄中需要設置的應用程序及其各自的權限。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.