Partner-Center-PowerShell icon indicating copy to clipboard operation
Partner-Center-PowerShell copied to clipboard

Need to be able to utilize Powershell Commands without tenant admin account (GDAP)

Open HPT-CGM opened this issue 2 years ago • 0 comments

Steps to reproduce

I was directed here by Microsoft Support, although I do think that was a mistake on their part......

Issue is that we have recently implemented the new GDAP system and we need to be able to manage all of our client tenants without using a set of admin credentials specific to each tenant.

What steps can reproduce the defect? Please share the setup, commandline for vstest.console, sample project, target framework etc.

Example, if we run the following to manage a client's calendar permissions, we cannot use our own tenant logins to do that despite having GDAP permissions set for Exchange. We still are required to use our admin account in that client's tenant to manage those permissions.

Connect-ExchangeOnline -UserPrincipalName [email protected]

Get-MailboxFolderPermission [email protected]:\calendar

Add-MailboxFolderPermission -Identity [email protected]:\calendar -user [email protected] -AccessRights PublishingEditor

Add-MailboxFolderPermission -Identity [email protected]:\calendar -user [email protected] -AccessRights PublishingEditor

Disconnect-ExchangeOnline

Expected behavior

Prompt for our login, followed by a successful command execution.

Actual behavior

Prompt for login, but requires client tenant, and the command will fail if we use our own.

Diagnostic logs

Please share test platform diagnostics logs.
The logs may contain test assembly paths, kindly review and mask those before sharing.

Environment

Please share additional details about your environment. Version

Please let me know what all we need to do here.

HPT-CGM avatar Jan 29 '24 17:01 HPT-CGM