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

Impersonation #26

Open DigitalFlow opened 3 years ago

DigitalFlow commented 3 years ago

Implement impersonation by the documented HTTP headers: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/impersonate-another-user-web-api#how-to-impersonate-a-user

imartinflores commented 3 years ago

Hi @DigitalFlow , this would be great to have ↑ . Also, I got another question, is there any way to associate user roles with the WebApi class implemented in the framework ?

Thanks!

DigitalFlow commented 3 years ago

Hi @imartinflores,

sorry for the late response. Currently associating user roles is not possible with the WebAPI class, as it is missing an implementation for the Xrm.WebApi.online.execute function.

This should not be a big issue to implement though, so I'll try to take care of it in the next release.

Kind regards, Florian

imartinflores commented 3 years ago

Hi @DigitalFlow , no worries at all! Thanks a lot!