-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Hello,
I’m connecting to a Dynamics 365 environment with the following:
$myConn = Connect-CrmOnline -ServerUrl <ServerUrl> -Username user1@domain.com
# Auth window appears → sign in succeeds
Get-CrmRecords -Conn $myConn ...
This works as expected. However, in the same PowerShell session if I connect with a different account:
$myConn = Connect-CrmOnline -ServerUrl <ServerUrl> -Username user2@domain.com
# Auth window appears → sign in succeeds
Every subsequent Get-CrmRecords -Conn $myConn ... triggers the OAuth prompt again.
The only way I’ve found to stop the repeated prompts is to close the PowerShell session and start a new one.
Any thoughts ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels