Getting a API key from username and password

Getting a API key from username and password

Is it possible to use the v3 API to obtain an API key by passing the username and password?  I'd like our technicians to use a script I created, but I obviously don't want to give them the plaintext API key.  Instead, I'd like for the script to prompt them for their username/password and query an endpoint obtain their API token.  I saw a thread doing something similar here, but I couldn't get it to work properly.

Does anyone have any suggestions or have you tried this?

                  New to ADSelfService Plus?