XRM-OSS / D365-UI-Test

An unopinionated UI testing library for Dynamics 365 CE and Dynamics Portals. Powered by TypeScript and playwright
https://xrm-oss.github.io/D365-UI-Test/
MIT License
60 stars 15 forks source link

[QUESTION] - Authentication WEBAPI #35

Open imartinflores opened 2 years ago

imartinflores commented 2 years ago

Hi @DigitalFlow , quick question, is there any way to authenticate to the WebApi with a different user ? Reason is, the user needs to have admin permission to create / delete cases. But the user needed to test some specific scenarios, does not have "Admin" role , so I would like to create a case for example with an Admin user, but then log in and test the scenario with the correct user role. Not sure if there is anyway to Login to CRM with a base role user, but then use the WebAPI with an admin user to create records or delete them. Thanks!