web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

authentication through externals app (android or dot net) to D365 Finance and operation to use Odata and custom service

(0) ShareShare
ReportReport
Posted on by 40

Dear All,

I have a question regarding authentication through  externals app (android or dot net) to call ODATA, we registered the app in azure active directory and add teh permission and get the client and secrets key and also bind a user with client ID with User in Dynamics FO 356, however we have the following question:

1- Should we add a new app registration for every users using the external application , so imagine we have 10 users using the same (dotnet or android app), does that mean we have to add 10 app registration in Azure active directory and add different the client Id and secert ID for each user?

2- Can we use the normal username and password to do the authentication instead of the client ID and Secert ID as they are not user friendly.

Thanks,

Mina.          

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You don't need to use app id and secret, instead users can also login with their O365/AAD accounts (username and password) . And they can all use one and same app id (AAD app registration is needed anyway).

  • MinaSafwat Profile Picture
    40 on at

    Hello Nikolaos,

    Thanks for your reply.

    Where could I find Dotnet library and Android library to do that?

    Thanks,

    Mina.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You can search the web for MSAL library for different platforms.

  • MinaSafwat Profile Picture
    40 on at

    Ok I will search for that.

    but in case we will use the client Id and secret, then we will need t add app registration for every users logging to the application (like if we have 100 user accessing the android app then will need to add 100 app registrations, and each with different client Id and secret Id), is that correct.

    Thanks,

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    100 users can use same client id and secret. But then you can't use it to manage identities, only for authenticating the connection as "service account".

    For example Microsoft's own Warehouse mobile app uses client id+secret, or alternatively a certificate for authentication. Additionally users type some simple user id and password (which are maintainedd inside Dynamics) to login. This way each user is still identified separately even though their connection to D365 is authenticated with one secret/certificate.

    docs.microsoft.com/.../install-configure-warehousing-app

  • MinaSafwat Profile Picture
    40 on at

    I am a little bit confused, i think still in our case  as we haven't userID for worker, if we need to manage identities, we have to add 100 app registration in azure

    or use MSAL, authentication?

    is it correct?

    BTW i tried to add user ID to worker but I can't find the default warehouse (it is empty although there is defined warehouse in the system), what should i do?.

    Thanks,

    Mina,  

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    I'm not sure if I understand your question.

    I have described the options, but I can't tell what you should do. This is part of your technical architecture for the app. Current IT landscape and architecture of the customer, business requirements and many other things need to be considered. But perhaps the core question is: "Should the app users be able to login with their O365 credentials or not?" If yes, then they should be added to D365 users, and use their own credentials. If not, then you use app id + secret, and need some other way to distinguish the identities of different users.

    But managing 100 app ids and secrets doesn't necessarily sound like the best solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 584 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans