how can i as admin impersonate any user in d365 F&O.
What are you trying to achieve from the business point of view?
i m trying to impersonate a test user with the help of this code .
docs.microsoft.com/.../xpp-session-run-time-functions . runas
Moved to D365 Finance forum.
You already found the product documentation, and "runAs" method. So, is your question now answered?
But, if you simply want to test the system as another user, you can login to the system with the test user's credentials. Simple and powerful.
i m unable to do that . this is new for me.could you please elaborate me how to do that.
Login using test user credentials is 100% identical to the process of login using Admin credentials. The login process is the same, regardless of user account.
1. Start your web browser
2. Navigate to the D365 URL
3. If you are logged in as Admin user, logout
4. When the system asks you for credentials, input the credentials of the test user.
no i mean how to write the code .
Hi singhr,
Have you checked this link? It has an example on how to use "RunAs".
if i have to impersonate with the help of runas() then how can i able to do that
I trust you already checked the suggestions above. Can you comment on them? Were they useful? What did you learn? Do you still have some questions on some areas?
If you could summarize this it would be great. Thanks!
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 813
André Arnaud de Cal... 738 Super User 2025 Season 2
Sohaib Cheema 566 User Group Leader