Coder Social home page Coder Social logo

Comments (13)

Yvand avatar Yvand commented on September 14, 2024

The app registered on Azure probably misses permission "Read directory data".
Please follow this link to register the app correctly

from entracp.

benjamingournay2 avatar benjamingournay2 commented on September 14, 2024

The app registered on Azure has the permission "Read directory data".
Do you have any ideas what else it could be ?

from entracp.

benjamingournay2 avatar benjamingournay2 commented on September 14, 2024

Do we need to enable Microsoft Graph ? and to give permissions to that service ?

from entracp.

Yvand avatar Yvand commented on September 14, 2024

Can you confirm that you did NOT grant "Read directory data" in delegated permissions?
For AzureCP to work you must grant only "Read directory data" under "Application permissions".
If you did otherwise and fix permissions afterwards, you need to wait for some time before you can check connection again in AzureCP, or you can register a new app set initially with the right permissions.

from entracp.

benjamingournay2 avatar benjamingournay2 commented on September 14, 2024

I granted Read directory data yesterday in application permissions and I did not grant anything in delegated permissions. This morning, I still have the issue unfortunately

from entracp.

Yvand avatar Yvand commented on September 14, 2024

Just in case, can you try to register a new application, grant only "Read directory data" under "Application permissions" and test if it works?

from entracp.

benjamingournay2 avatar benjamingournay2 commented on September 14, 2024

We created a new app but still the same error:
tenantcustomclaims

from entracp.

benjamingournay2 avatar benjamingournay2 commented on September 14, 2024

Do you have an idea what can cause that issue in the sharepoint logs when I click "test tenant connection" ? I followed exactly what was said in the documentation. I tried both the last release and beta 3 versions but I always have the same issue:

[AzureCP] Unexpected error while testing connectivity: System.Data.Services.Client.DataServiceQueryException: An error occurred while processing this request., Callstack:
at System.Data.Services.Client.QueryResult.EndExecuteQuery[TElement](Object source, String method, IAsyncResult asyncResult)
at System.Data.Services.Client.DataServiceRequest.EndExecute[TElement](Object source, DataServiceContext context, String method, IAsyncResult asyncResult)
at System.Data.Services.Client.DataServiceQuery1.EndExecute(IAsyncResult asyncResult) at Microsoft.Azure.ActiveDirectory.GraphClient.Extensions.DataServiceContextWrapper.<>c__DisplayClass4c2.b__4a(IAsyncResult r)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.Azure.ActiveDirectory.GraphClient.Extensions.DataServiceContextWrapper.<ExecuteAsync>d__4e2.MoveNext()

from entracp.

Yvand avatar Yvand commented on September 14, 2024

Can you ignore this error, add the connection and test directly the people picker?
You can monitor AzureCP activity in SharePoint logs if you filter on Product/Area "AzureCP"
If people picker doesn't work, can you try to update AzureCP with the latest Beta, which you can download here?

from entracp.

benjamingournay2 avatar benjamingournay2 commented on September 14, 2024

from entracp.

Yvand avatar Yvand commented on September 14, 2024

Error message is "Insufficient privileges to complete the operation", which should be resolved by granting "Read directory data" only under "Application permissions" (and not to delegate permissions).
I cannot explain why you keep getting this error after setting permissions like described above...

from entracp.

Markus-MEEQIT avatar Markus-MEEQIT commented on September 14, 2024

Make sure you have actually granted the saved permissions in Azure Portal, by clicking the Grant Permissions button in the blade prior to the Enable Access blade. The portal is a bit confusing in that it first asks you to save permissions but you then also have to grant the saved permissions.

from entracp.

joker-it avatar joker-it commented on September 14, 2024

i had the same error, after reinstall the solution and grant permission in Azure Portal it works fine...

from entracp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.