web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Access of Microsoft en...
Power Apps
Unanswered

Access of Microsoft entra Id table under automate flow - error access token not found

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I need to use microsoft entra id dataverse table to fetch employees of the organisation. I am simply listing all the rows without any filter- IT throws me below error. 

 

Is there specific license require to use entra id entity ? We are on free trial plan for powerapps at the moment.

Vani_Mankad_BS_0-1707476833001.png

Vani_Mankad_BS_1-1707476918502.png

 

 

Error details -
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials. (Fault Detail is equal to Exception details:
ErrorCode: 0x80040216
Message: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.
TimeStamp: 2024-02-09T11:07:28.0000000Z
OriginalException: Microsoft.Crm.CrmException: AccessToken not found. Please make sure plugin is registered as synchronous and not called with app credentials.
at Microsoft.Crm.ObjectModel.OboTokenProvider.<>c__DisplayClass11_0.<GetOBOToken>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
at Microsoft.Crm.Sandbox.Service.PluginSecureStoreServiceProvider.<>c__DisplayClass39_0.<OnBehalfOfTokenServiceProviderAcquireToken>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult...).

I have the same question (0)
  • SteRe Profile Picture
    254 on at

    Are you sure to check the right table? 

    I guess you are looking for user table (technical name systemuser) und there property for the azure id. 

  • Vani_Mankad_BS Profile Picture
    11 on at

    I can not get users with guest member type under "systemuser" entity. 

  • SteRe Profile Picture
    254 on at

    OK, this might be dependent on setup, if guest users are allowed. 

    But I re-read your question and I did not got the idea behind your request. Maybe you can a little bit more what you'd like to achieve, because Dataverse is not Entra ID and so does not know all potential employees. In particular environment admin can restrict who (Entra Account) is going to be created as user in which Dataverse (environment).

  • Vani_Mankad_BS Profile Picture
    11 on at

    ok, Thank you for replying.

    My requirement -
    We are developing a trial app where i have to send teams notification ( adaptive card ) to collect user´s work location. Now, in my organisation, there are users with member type ( employees) & some users have guest account( not employees).

    I want to design the power automate flow where i get all the users of particular organisation in order to send them notification via teams.

     

    When i queried "User" entity - It only gave my users who are part of environment so this is of no use for me.

    I want list of all members ( employees & guests) who are listed under specific organisation.

  • SteRe Profile Picture
    254 on at

    Hmm, to me this sounds like you should use a connector to Entra ID and check data there instead of dataverse. Just have a look at https://learn.microsoft.com/en-us/connectors/azuread/ 

  • Vani_Mankad_BS Profile Picture
    11 on at

    Hi Again,

    Yes, I tried to use the same and getting below permission error. I need to know what type of access is required in order to access Entra ID connector. Basically, I can create a service account which can have these rights and can access entra Id to fetch Organisation employees.

     

    Any idea ?

     

    Vani_Mankad_BS_0-1707748705733.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard