You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
Grant-PnPTenantServicePrincipalPermission is timing out consistently for me.
Reporting an Issue or Missing Feature
The cmdlet is timing out and not completing and indicates a timeout. I have resorted to the M365 CLI which is working for me: m365 spo serviceprincipal grant add
Expected behavior
Service Principal added and available in https://[tenant]-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement
Actual behavior
`
Grant-PnPTenantServicePrincipalPermission : The operation has timed out
At line:1 char:1
if ($cred -eq $null){
$cred = Get-Credential -UserName $email -Message "Please enter your credentials for SharePoint Online in the '$tenant' tennant."
}
Running "Fiddler everywhere" with an open session, after executing Grant-PnPTenantServicePrincipalPermission command I'm observing a flood of repeated CSOM requests for the search query 'contentclass:STS_Site AND SiteTemplate:APPCATALOG' with a 'IndexDocId > x.xxxxxxxx' appended to the end of the search query.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Grant-PnPTenantServicePrincipalPermission is timing out consistently for me.
Reporting an Issue or Missing Feature
The cmdlet is timing out and not completing and indicates a timeout. I have resorted to the M365 CLI which is working for me:
m365 spo serviceprincipal grant add
Expected behavior
Service Principal added and available in https://[tenant]-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement
Actual behavior
`
Grant-PnPTenantServicePrincipalPermission : The operation has timed out
At line:1 char:1
`
Steps to reproduce behavior
Please include complete code samples in-line or linked from gists
`
$tenant = "[yourtenant]"
$username = [Environment]::UserName
$searcher = [adsisearcher]"(samaccountname=$env:USERNAME)"
$email = $searcher.FindOne().Properties.mail
$email = $email.Replace("@myco.com", "@$tenant.onmicrosoft.com")
if ($cred -eq $null){
$cred = Get-Credential -UserName $email -Message "Please enter your credentials for SharePoint Online in the '$tenant' tennant."
}
$tenantAdminUrl = "https://$tenant-admin.sharepoint.com/"
Connect-PnPOnline $tenantAdminUrl -Credentials $cred
Get-PnPWeb
Grant-PnPTenantServicePrincipalPermission -Scope "User.ReadBasic.All" -Resource "Microsoft Graph"
`
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name sharepointpnppowershell* -ListAvailable
)3.26.2010.0
How did you install the PnP-PowerShell Cmdlets?
The text was updated successfully, but these errors were encountered: