Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

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

@HPT-CGM

Description

@HPT-CGM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions