I have an application integrating with the DocuSign eSignature REST API. We have always been using the Legacy Header X-DocuSign-Authentication as our Authentication method but since it is no longer recommended for use by DocuSign we decided to switch to using the Service Integration Authentication - Using Organization Administration.
To create a JSON Web Token Bearer Grant for Service Integration Authentication, I would need to provide in the JWT Body the user ID (the admin user ID in this case) and to get user ID I would need to look up the admin user’s GUID from their email using the /restapi/v2/accounts/account_id/users?email=email method call which will eventually require some sort of authentication. How can I make a call to look up a user’s GUID from their email without using X-DocuSign-Authentication which is no longer recommended?
Ultimately what we want is to have the admin's email, password and integrator key then this admin account can impersonate others in the organization. The problem is we don't have the admin's user ID in the first place to do that.