To use multiple user credentials in different macros, you can follow these general steps:
Define your user credentials: Store your user credentials in a secure location, such as a password manager or a configuration file. For example, you might have multiple sets of credentials for different APIs or services you use.
Create macros: Create your macros as separate modules in your programming language of choice. In each macro, you’ll need to define variables to hold the user credentials you want to use.
Set up authentication: In each macro, use the user credentials variables to authenticate with the API or service you’re accessing. The specifics of authentication will depend on the API or service you’re using. Some may require you to pass the credentials as parameters in a function call, while others may require you to set up authentication headers. You can also refer this source .
Hope it will help you.