Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Testing Odata with pos...
Finance forum
Suggested answer

Testing Odata with postman

Posted on by 40

We are trying to test ODATA with Postman and we managed to do that using the below link 

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/third-party-service-test

the issue is that this link uses client Secret to access the ODATA,  however, we need to use the username and password to access the ODATA, is that possible?

is there any guide to do that?

Thanks in advance,

Mina.

Categories:
  • MinaSafwat Profile Picture
    MinaSafwat 40 on at
    RE: Testing Odata with postman

    can we use authorization code grant flow instead of client credentials?

    also, is it supported with an On-premises environment?

  • AnithaEswaran Profile Picture
    AnithaEswaran 2,030 on at
    RE: Testing Odata with postman

    I dont think it is possible to track the users during integration. We have  a common integration user set up in FO and that is mapped in System Adminstration -> Set up -> Azure Active Directory applications.

    May be you can ask the users to pass their data with a suffix or prefix. For instance, if user X is creating sales order, the field 'SalesOrderName' can be prefixed or suffixed with the user id to identify the user.

    Otherwise it is not possible.

  • MinaSafwat Profile Picture
    MinaSafwat 40 on at
    RE: Testing Odata with postman

    the issue here is that we won't know which user in the team does a certain action or transaction as all are sharing the same client ID and client secret, we need to find a way to track who did each action.

    Thanks,

    MIna.

  • AnithaEswaran Profile Picture
    AnithaEswaran 2,030 on at
    RE: Testing Odata with postman

    Hi,

    There is no seperate app registration for each user.

    All the users in the Organization belong to the same tenant. So app registration can be created by the user who has admin access to the portal . Once created, Client Id, Secret and tenant ID can be shared to the team .  

    anithasantosh.wordpress.com/.../

    anithasantosh.wordpress.com/.../

    Above link might be useful for you.

  • MinaSafwat Profile Picture
    MinaSafwat 40 on at
    RE: Testing Odata with postman

    The issue is we won't be able to  differentiate the action done by each user or we will have to make separate app registration for each users, what is the solution in this case?

  • Suggested answer
    dolee Profile Picture
    dolee 11,279 on at
    RE: Testing Odata with postman

    Base on your requirement I assume the users are not using MFA. Give below a try in that case, 

    (+) Dynamics 365 Online Authenticate with User Credentials - Microsoft Dynamics CRM Community

    I couldn't test this as I don't have access to an account with MFA off.

  • Suggested answer
    huijij Profile Picture
    huijij 19,803 on at
    RE: Testing Odata with postman

    Hi Mina,

    The client Secret to access the ODATA is Essential.You must follow the step to Register Azure App.

    regards

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans