Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

People Picker is not working #299

Open
Srinivasnamala2003 opened this issue Dec 4, 2024 · 14 comments
Open

People Picker is not working #299

Srinivasnamala2003 opened this issue Dec 4, 2024 · 14 comments
Assignees

Comments

@Srinivasnamala2003
Copy link

Hi Yvand
People picker is not working when take the logs we are seeing below error in the logs please give me the suggestion to resolving the issue
we are configure UPA AZure CCP In Sharepoint Subscription edition version
Error :
[AzureCP] Unexpected error occurred Microsoft.Graph could not query tenant 'EYGS.onmicrosoft.com': System.Net.Http.HttpRequestException: An error occurred while sending the request., Callstack:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.RedirectHandler.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.RetryHandler.d__9.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.CompressionHandler.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.AuthenticationHandler.d__16.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.HttpProvider.d__19.MoveNext()

@Yvand
Copy link
Owner

Yvand commented Dec 4, 2024

Hi @Srinivasnamala2003, this error is too generic. Also, AzureCP is outdated and was replaced by EntraCP, which brings major improvements.
Can you upgrade to EntraCP?

And just 1 remark: It is counter-productive to post your problem on multiple issues, that does not help in any way, and causes multiple people to receive useless notifications

@Yvand Yvand self-assigned this Dec 4, 2024
@Yvand Yvand added the Issue label Dec 4, 2024
@Srinivasnamala2003
Copy link
Author

Hi Yvand,

I hope you are doing well.

We are currently facing an issue on the production farm, and users are experiencing difficulties. While we await the Entra CP upgrade to fully resolve the issue, I wanted to check if there is a workaround we can implement in the meantime.

Could you please advise on the steps we can take to mitigate the issue for users until the upgrade is completed?

@Yvand
Copy link
Owner

Yvand commented Dec 4, 2024

@Srinivasnamala2003 as I mentioned, the error is too generic to determine the cause, but I suggest you test the connectivity to Entra ID using the scripts available on this page: https://entracp.yvand.net/docs-azurecp/help/troubleshooting/

@Srinivasnamala2003
Copy link
Author

HI Yvand
Where can download the EntraCP package please provide the download the link

@Yvand
Copy link
Owner

Yvand commented Dec 11, 2024

@Srinivasnamala2003
Copy link
Author

HI @Yvand,

After deployed the EntraCP we are not able to see the central admin EntraCP session option in for add the tenant connection
Could you help us?
Uploading Screenshot 2024-12-12 013116.jpg…

@Srinivasnamala2003
Copy link
Author

When Run the get-spclaimprovider is not EntraCP after installing the solution

@Yvand
Copy link
Owner

Yvand commented Dec 12, 2024

hi @Srinivasnamala2003, you have to follow all the steps in the documentation, it requires more steps than a typical wsp file.
In particular, based on your symptoms, I think you merely omitted to activate the features after deploying the solution

@Srinivasnamala2003
Copy link
Author

Hi Yvaand
below step is failed. connect is failed could you please help us this issue

Add-Type -AssemblyName "Yvand.EntraCP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=65dc6b5903b51636"
$config = [Yvand.EntraClaimsProvider.EntraCP]::GetConfiguration()
$settings = $config.Settings

Add a Microsoft Entra ID tenant using a client secret

$tenant = New-Object "Yvand.EntraClaimsProvider.Configuration.EntraIDTenant"
$tenant.Name = ".onmicrosoft.com"
$tenant.ClientId = ""
$tenant.ClientSecret = ""
$settings.EntraIDTenants.Add($tenant)
$config.ApplySettings($settings, $true)

Add a Microsoft Entra ID tenant using a client certificate

$tenant = New-Object "Yvand.EntraClaimsProvider.Configuration.EntraIDTenant"
$tenant.Name = ".onmicrosoft.com"
$tenant.ClientId = ""
$certPath = "<CERTIFICATE_PFX_FILEPATH>"
$certPassword = ConvertTo-SecureString -String "<CERTIFICATE_PFX_PASSWORD>" -Force -AsPlainText
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath, $certPassword, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::Exportable)
$tenant.ClientCertificateWithPrivateKey = $cert
$settings.EntraIDTenants.Add($tenant)
$config.ApplySettings($settings, $true)

@Yvand
Copy link
Owner

Yvand commented Jan 7, 2025

Can you run the script below and return the output:

$solution = Get-SPSolution -Identity "EntraCP.wsp"
Get-SPFeature| Where-Object{$_.SolutionId -eq $solution.SolutionId}

Copy link

github-actions bot commented Feb 7, 2025

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Feb 7, 2025
@Srinivasnamala2003
Copy link
Author

We are getting below Error when we connect tenant using Client ID and Client Secert
Error :
Unable to get access token for tenant 'eyuat.onMicrosoft.com': Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

@github-actions github-actions bot removed the stale label Feb 10, 2025
@Yvand
Copy link
Owner

Yvand commented Feb 11, 2025

Most likely that is because you did not set the assembly bindings

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants