Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AB-400/
  4. AB-400 Learning Path/
  5. Study FAQs/
  6. Which user does a Dataverse plug-in's Organization service run as?

Study FAQ

Which user does a Dataverse plug-in's Organization service run as?

Exam · AB-400Knowledge domain · Extend Microsoft Power Platform (35–40%)Updated Nov 25, 2026
Also asked as 2
  • Which identity does CreateOrganizationService use inside a Dataverse plug-in?
  • How does a Dataverse plug-in step's Run in User's Context setting affect its SDK calls?

Answer

Inside a Dataverse plug-in, get IOrganizationServiceFactory from the supplied IServiceProvider and call CreateOrganizationService(context.UserId) to use the effective identity defined by the step registration. The default step setting is Calling User. If a designer sets Run in User's Context to a different user, operations made through that service run with the selected user's Dataverse privileges. Impersonate a user in a Dataverse plug-in

Use context.InitiatingUserId deliberately when the operation should use the user who originally initiated the chain. That identity can differ from the step's effective user. Keep the service and execution context in local variables because Dataverse can reuse plug-in instances. Plug-ins use the SDK Organization service supplied by the platform. Web API calls back into Dataverse from plug-in code are unsupported. Write a Dataverse plug-in

Verify the step with a restricted intended caller. For example, run one permitted related-row read and one intentionally denied write. If the rule can use a registered image, it may need neither call. Treat elevated execution as an explicit trust decision and include it in the registration review. Register a plug-in

Full explanation

AB-400: Dataverse Plug-ins and the Event Execution Pipeline

Study guide · AB-400

Read the full explanation →
← Back to AB-400 FAQsView learning path →

Related questions

How do I authorize callers of an Azure Function and let the Function access Dataverse with managed identity? →How do I make a long-running Dataverse job recoverable in Azure Functions? →How do I choose Azure Functions triggers and hosting for a Dataverse workload? →How should a Dataverse integration handle throttling and decide when to retry a write? →How do I diagnose a Dataverse application user that cannot access the target environment? →How do I submit a Dataverse background operation and verify whether it succeeded? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.