Hi @Diana · Thanks for your query.
Although your application will be accessed by multiple organizations, you don't have to use multiple or different Client ID for each organization. You need to register the application as a Multi-tenant application in Azure AD > App Registration and you can use same Client ID for multiple organizations. All you need to update in your code is, the tenant ID. Instead of using a specific tenant name or ID, you need to either use Organizations or Common.
Once this is done, user will be redirected to his/her tenant based on the domain name in the UPN suffix that he enters on the sign in page. After successful authentication, he/she will be presented with a consent prompt, accepting that will result in creation on a servicePrincipal corresponding your multi-tenant application. The object id of the servicePrincipal will be different in every tenant but the app/client ID will be same in every tenant. That is why client id is not required to be changed for each and every tenant accessing your application.
Here is a sample authentication request with Organizations endpoint for your reference, which will redirect you to the tenant based on the domain name in the UPN suffix that you enter in username field.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.