Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Using User's Context to call Azure DevOps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

What I'd like to do is that if a user enters a work item Id on a field, other detailed fields are populated from DevOps Work Item using Plug-ins.

I haven't seen any example that connecting with the external service (Azure DevOps). Is it possible to use a CRM user's context to AzureDevOps? 

Impersonate a user (Microsoft Dataverse) - Power Apps | Microsoft Docs

 

  • sjin Profile Picture
    Microsoft Employee on at
    Re: Using User's Context to call Azure DevOps

    No, it's for Azure DevOps (ADO). We have a separate repo to manage all work items. If a case/ticket on Dynamics is created, we'd like to link it to a relative ADO work items. I'll go with using a new service account to manage the connection between PowerAutomate and ADO only

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Using User's Context to call Azure DevOps

    Is the Azure DevOps provisioned on the customer's tenant? If this is for production use, you'll need to have customer's account authenticate.

    Ok that you're using a SPN for Dataverse integration which is good, but what about when configurating the tables and model-driven apps?

  • sjin Profile Picture
    Microsoft Employee on at
    Re: Using User's Context to call Azure DevOps

    For security reason, we don't use Microsoft corporate account on a connector. For Common Data Service (Dataverse), we make the connection using Service Principal. That's why I was considering using Plug-in to use CRM user's context to AzureDevOps

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Using User's Context to call Azure DevOps

    Out-of-the-box not that I know of. But why do you specifically need that? Wouldn't a service account only used for that connector suffice and keep it simple. It would be more management to ensure the user also have the right Azure DevOps roles and whatnot, and cleanup the connector is a user leaves, etc.

  • sjin Profile Picture
    Microsoft Employee on at
    Re: Using User's Context to call Azure DevOps

    Thanks for replying @EricRegnier . That's right.

    I tried the Power Automate solution that you suggested before asking it on the forum. There was no option to use a service principal on Azure DevOps connector. Is it possible to use a signed-in user (Not admin) on Dynamics and retrieve the details? 

     

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Using User's Context to call Azure DevOps

    Hi @sjin,

    If I understand correctly if a user enters a work item ID in a Dataverse table/entity/form, you want some logic to populate other Dataverse fields from data in Azure DevOps? If so, then yes it's possible. I would recommend Power Automate rather than a plugin for a more flexible low code/no code solution.

    • You can use Azure DevOps connector and "Get Work Item Details" action
    • Use the When a row is added, modified or deleted from the Dataverse connector to trigger when the work item ID field is updated on the entity/table and "Update a row" action to update the record/row after retrieving the details from Azure DevOps.
    • The Dataverse connector will run under the user context automatically and you need to connect to Azure DevOps connector with a service account.

    Hope this helps!

     

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.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics