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 / Error when try to sync...
Power Apps
Unanswered

Error when try to sync user from Microsoft Entra ID

(2) ShareShare
ReportReport
Posted on by 1,847 Super User 2025 Season 2
Hi Guys!
 
I'm facing an weird behaviour when i try to sync an user from a group member in a Dataverse Environment.
 
For some user i'm facing the following issue.  What could be that issue?
 
{
  "errors": [
    {
      "Subject": "Result",
      "Description": "CDS api returned an exception",
      "Code": "cdsApiException"
    },
    {
      "Subject": "InnerException",
      "Description": "Kepler.Providers.Dataverse.CDSApiException: SandboxPluginException. Message:[Redacted]\\r\\n   at Kepler.Providers.Dataverse.CDSHttpClient.SendAsync(HttpClient client, String instanceUrl, CDSHttpRequest cdsHttpRequest, Dictionary`2 additionalHeaders, CancellationToken token) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Kepler.Providers.Dataverse\\\\CDSHttpClient.cs:line 107\\r\\n   at Kepler.Providers.Dataverse.CDSHttpClient.SendAsyncWithoutUsingCookiesAsync(String instanceUrl, String baseAddress, CDSHttpRequest cdsHttpRequest, Dictionary`2 additionalHeaders, CancellationToken token) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Kepler.Providers.Dataverse\\\\CDSHttpClient.cs:line 64\\r\\n   at Microsoft.Dynamics.DirectoryManagement.CDSWebApiConnector.<>c__DisplayClass13_0.<<CreateSystemUserWithSpecialFieldsAsync>b__0>d.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\CDSWebApi\\\\CDSWebApiConnector.cs:line 227\\r\\n--- End of stack trace from previous location ---\\r\\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteAsync[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 action, IEnumerable`1 additionalCustomProperties)\\r\\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteAsync[TResult](ILogger logger, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\\r\\n   at Microsoft.Dynamics.DirectoryManagement.CDSWebApiConnector.CreateSystemUserWithSpecialFieldsAsync(String instanceUrl, User adUser, Boolean isLicensed, Boolean shouldUserBeDisabled, Int32 calType, Int32 userLicenseType, Int32 accessMode, Boolean setupUser, Boolean isSyncWithDirectory, Nullable`1 cdsInstanceType, String firstName, String lastName) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\CDSWebApi\\\\CDSWebApiConnector.cs:line 195\\r\\n   at Microsoft.Dynamics.DirectoryManagement.UserCreator.<>c__DisplayClass6_0.<<ExecuteAsync>b__0>d.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\Stages\\\\UserCreator.cs:line 130\\r\\n--- End of stack trace from previous location ---\\r\\n   at Microsoft.Dynamics.DirectoryManagement.UserCreator.<>c__DisplayClass6_0.<<ExecuteAsync>b__0>d.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\Stages\\\\UserCreator.cs:line 149\\r\\n--- End of stack trace from previous location ---\\r\\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteAsync[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 action, IEnumerable`1 additionalCustomProperties)\\r\\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteAsync[TResult](ILogger logger, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\\r\\n   at Microsoft.Dynamics.DirectoryManagement.UserCreator.ExecuteAsync(CDSSystemUser systemUser, User adUser, IUserStateCalculator userStateCalculator, SyncUserRequest syncUserRequest, Boolean useSiteApi, String instanceUrl, SyncUserResponse syncUserResponse, String instanceConnectionString, Nullable`1 instanceType, Boolean disableSqlFallback, CancellationToken token) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\Stages\\\\UserCreator.cs:line 70\\r\\n   at Microsoft.Dynamics.DirectoryManagement.UserProvisioner.<>c__DisplayClass15_0.<<ExecuteAsync>b__0>d.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\UserProvisioner.cs:line 189\\r\\n--- End of stack trace from previous location ---\\r\\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteAsync(ILogger logger, EventId eventId, ActivityType activityType, Func`1 action, IEnumerable`1 additionalCustomProperties)\\r\\n   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.ExecuteAsync(ILogger logger, ActivityType activityType, Func`1 action, IEnumerable`1 additionalCustomProperties)\\r\\n   at Microsoft.Dynamics.DirectoryManagement.UserProvisioner.ExecuteAsync(SyncUserRequest syncUserRequest, IExecutionPipelineContext executionPipelineContext, SyncUserResponse syncUserResponse, CancellationToken token) in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\UserProvisioner.cs:line 89\\r\\n   at Microsoft.Dynamics.DirectoryManagement.DirectoryManagement.<>c__DisplayClass14_1.<<SyncUserAsync>b__3>d.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\DirectoryManagement.cs:line 233\\r\\n--- End of stack trace from previous location ---\\r\\n   at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()\\r\\n--- End of stack trace from previous location ---\\r\\n   at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)\\r\\n   at Polly.AsyncPolicy.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)\\r\\n   at Microsoft.Dynamics.DirectoryManagement.DirectoryManagement.<>c__DisplayClass14_0.<<SyncUserAsync>b__0>d.MoveNext() in C:\\\\__w\\\\1\\\\s\\\\src\\\\Microsoft.Dynamics.DirectoryManagement.Core\\\\BusinessLogicProcessor\\\\DirectoryManagement.cs:line 219",
      "Code": null
    },
    {
      "Subject": "AdditionalData",
      "Description": null,
      "Code": null
    }
  ],
  "information": [
    {
      "Subject": "Result",
      "Description": "[\"SyncMode: Default\",\"Instance 52e132f6-723b-ee11-8476-002248de5de7 exists\",\"Instance 52e132f6-723b-ee11-8476-002248de5de7 in enabled state\",\"Instance Url found https://***.crm2.dynamics.com\",\"User found in AD tenant\",\"User in enabled state in AD tenant\"]",
      "Code": null
    },
    {
      "Subject": "AdditionalResultDetails",
      "Description": "",
      "Code": null
    },
    {
      "Subject": "RequestId",
      "Description": "27456073-7689-4e33-88b7-775d7b692a90",
      "Code": null
    },
    {
      "Subject": "CorrelationId",
      "Description": "a9614919-6c07-49c3-9118-073980b834b1",
      "Code": null
    },
    {
      "Subject": "SystemUserId",
      "Description": null,
      "Code": null
    },
    {
      "Subject": "SecurityGroupId",
      "Description": "00000000-0000-0000-0000-000000000000",
      "Code": null
    },
    {
      "Subject": "Timestamp",
      "Description": "9/30/2024 6:05:10 PM",
      "Code": null
    }
  ]
}

 
I have the same question (0)
  • YS-24101733-0 Profile Picture
    3 on at
    We have this issue also. 

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard