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.

Cannot connect to customer tenant Exchange Online via Secure application model #201

@Shadoxity

Description

@Shadoxity

Hey Everyone,
We are trying to move to use the secure application model for our partner scripts, working fine however we are completely struggling to get the Exchange Online powershell working.
Like the other modules, we need to be able to use our refresh token to sign into it, but I cannot find a way. The instructions here seem to have a prompt for details and the script seems to be incorrect.
https://docs.microsoft.com/en-au/powershell/partnercenter/multi-factor-auth?view=partnercenterps-2.0

I.e. the second part has a use of $credentials when that variable has not been set yet.

We need to know how to connect to this application ID by using a refresh token, but just cannot seem to get there.
If we use the app we added to Azure (which is used for MSOnline etc) with it but with the exchange online application id it says
New-PartnerAccessToken : AADSTS700007: The grant was issued for a different client id.

Hoping someone can help us get this working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions