Skip to content

Better messaging for cases when organization in "admin-only" mode #135

Closed

Description

When organization is in admin-only mode the response we get is a little bit cryptic. I would expect some distinct message

Microsoft.PowerPlatform.Dataverse.Client.Utils.DataverseConnectionException: Failed to connect to Dataverse
System.AggregateException: One or more errors occurred. (The HTTP request was forbidden with client authentication scheme 'Anonymous'.)
System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'.
at Microsoft.PowerPlatform.Dataverse.Client.ConnectionService.InitServiceAsync()

Activity

  1. MattB-msft commented on May 31, 2021

    @MattB-msft
    Member

    Yes, we have a backlog item with the API team to help provide a bit more context as to what is going on.
    I will ask the team to check into where that is in the queue.

    Once the API team adds in server side support for it, it should just appear as the exception explanation

  2. added
    Server Platform API Fix\Change
    on Oct 4, 2021
  3. MattB-msft commented on Jan 25, 2023

    @MattB-msft
    Member

    Folks, we have a partial solution to this problem delivered onto our servers now and are bringing those updates into the Dataverse ServiceClient in the next update (post 1.0.26)

    In the next Client release, I will show up as either a Dataverse connection exception or an Operation Exception with a message indicating admin mode,

    This is a partial fix right now, does not show correctly during operation, IE after a connection the server is placed into admin mode. The full fix has been identified and is being worked.

    We will keep this open until we have the full fix delivered

  4. MattB-msft commented on Jul 20, 2023

    @MattB-msft
    Member

    This should now be fixed correctly in the platform all up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Server Platform API Fix\Changeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions