DMT command line with Identity Provider

In the past I’ve had no problem creating powershell scripts to run DMTs but I’ve always used SSO with these scripts. I’m working in a new environment that uses Identity provider to log in. I’ve tried adding my username and password as the -user and -pass arguments in the command line but it still pops up with the identity provider login. Is there any way to run DMT through the command line when using Identity Provider for sign in?

I ended up creating a generic DMT user with basic credentials instead of going through Identity provider. It worked that way

2 Likes

Normally identity providers do not allow authentication with name and password out of their UI, this is against the idea.
For command line usage like you want, there could be client credentials flow used, with clientId and secret, but I don’t know if DMT supports this.

If you’re running the DMT interactively, I find that if I have authenticated with the Client (in my case Entra ID) and exit the client, DMT will use the access token and go right in.

If you’re trying to batch this, then you’ll have to get the access token through a different flow as Olga suggests - a secret or maybe a local certificiate.