简体   繁体   English

Powershell脚本-配置访问CRM API的权限

[英]Powershell script- Configure Permission to Access CRM API

I have a Powershell that can Register an application in Azure Active Directory. 我有一个Powershell,可以在Azure Active Directory中注册应用程序。 But I am unable to find script for configuring this app to access CRM APIs. 但是我找不到用于配置此应用程序以访问CRM API的脚本。 I am referring to this link Any pointers are welcome. 我指的是此链接 ,欢迎使用任何指针。 Thanks! 谢谢!

You could use New-AzureADApplication to grant permission. 您可以使用New-AzureADApplication授予权限。 Like below: 如下所示:

$myApp = New-AzureADApplication -DisplayName $appName -IdentifierUris $appURI -Homepage $appHomePageUrl -ReplyUrls $appReplyURLs -PasswordCredentials $PasswordCredential -RequiredResourceAccess $reqGraph

This blog will be helpful. 这个博客会有所帮助。

You also could give permission on Azure Portal. 您还可以在Azure门户上授予权限。

在此处输入图片说明

Please refer to this link . 请参考此链接

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

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