I want to use Windows Authentication and get User info such as Givenname, Surname, etc.
I used UserPrincipal.Current in IIS and I got an exception, but IIS express looks fine.
How to Get Current User Principal
5.6k Views Asked by Jaider At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- IIS Rewrite Module exclude bots but allow GoogleBot
- Angular 16 sending null values to API
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
- How to unprotect ASP.NET FormAuthentication cookie
- How does it work using ASP.NET FormAuthentication
- What is the purpose of a completely standalone 'this'?
- Is there a way to read .csproj PropertyGroup variable in c#
- MSBuild trying to copy different dll with similar name into project sporadically
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Azure AD guest account in web app authentication user claims data
- Receiving 400 bad request on post when customer auth handler is used
Related Questions in WINDOWS-AUTHENTICATION
- Blazor WebAssembly with API protected with Windows authentication
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- AspNetCore WebApp not passing users windows credentials to API
- How can I run my C# app using a SQLConnection to SQL Server with Windows Authentication in a PC not joined to domain?
- .Net SqlConnection class with Windows authentication
- Cannot authenticate to IIS using win auth and dotnet 6
- SQL windows authentication fails sort of
- Why doesn't my visual studio asp.net core web application recognise my windows account when running the project
- .NET core 7 windows authentication exception when deployed
- Unable to connect to SQL Server using windows authentication mode through PowerShell
- SharePoint Online : Tokens and Mutli Factor Authentication in a WinForms App
- Windows Authentication in New Dotnet SPA Templates (React + Vite)
- ASP.NET (Blazor): Trigger windows authentication popup only on a single page
- How to configure ClaimTransformer for CoreWCF with TCP endpoints?
- Kerberos ticket has wrong impersonationlevel after the calling application upgraded from .NET 4.7
Related Questions in USERPRINCIPAL
- Find if an user is part of an AD group
- change user PrincipalName necessary
- My UserClaimsPrincipalFactory does not generate claims during login. (Dotnet 6.0.5)
- How to inject IPrincipal into a class
- I can't reset Active Directory user password by the admin using C# .NET Core 6
- Using PrincipalSearcher to find users matching pattern
- How does UserPrincipal.FindByIdentity(PrincipalContext context, string identityValue) query Active Directory?
- HttpServletRequest userprincipal is null at first load
- Is there a way of searching for a list of users on AD who have not logged on in the last year?
- Creating a PrincipalSearcher takes very long
- Cannot grant permission to EventBridge bus
- "Properties" and "GetProperties" not available for UserPrincipal, unable to get 'Department' and other values
- org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser cannot be cast to model.UserPrincipal
- UserPrincipal.Current.Context fails for non-Administators
- Add user to Active Directory Exception while calling Save function on UserPrincipal
Related Questions in GROUPPRINCIPAL
- C# GroupPrincipal is always null
- C# AD group count not correct
- c# GroupPrincipal.FindByIdentity finds the group, but when using GetMembers getting error - there is no such object on the server
- Why is the ObjectSecurity property in the DirectoryEntry instance of a GroupPrincipal always null?
- Why am I getting "No security object matching the specified parameters found" error (GroupPrincipal)
- UserPrincipal.Current returns a GroupPrincipal (when ran towards a Azure AD created user) - however a UserPrincipal type is expected
- UserPrincipal.IsMemberOf(GroupPrincipal) across domains ASP.Net
- Server is unwilling to process the request when I try to save after remove member in Active Directory C#
- While trying to resolve a cross-store reference, the SID of the target principal could not be resolved
- List local group members
- UserPrincipal.FindByIdentity Unable to cast object of type 'GroupPrincipal' to type 'UserPrincipal
- Check if a DirectoryEntry is the last of a Group in Active Directory C#
- IIS connection to active directory for GroupPrincipal user.IsMemberOf
- Can not retrieve one particular group users in Active Directory using PrincipalContext
- GroupPrinciple.FindbyIdentity is too slow
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I solved by using a Find Method: