im using sharepoint 2010 with claimsAuthentification (SQLMembership Provider)
when user is authentified the first time, sharepoint create automatically a profile for this
user, please how can i avoid this.
thx
You can't with the out of the box SqlMembershipProvider, SharePoint needs to store user data somewhere, it just just hooks into the provider. You would need to write your own MembershipProvider to accomplish this.
Related
Sorry for an obvious question but I'm net to .Net Core.
I'm working on a new project that was created using Visual Studio on Mac with "Individual Authentication".
I want to assign Role to user right at the registration process (depending on their choice - dropdown option). I read many tutorials and watched many videos, but I cannot understand what's the right way to do it.
In many videos I was guided to create a project without Authentication and implement it manually including sign up and sign in.
I'm confused because I'm getting this functionality right away by creating a new project with Authentication.
But in my project I don't have access to files like "RegistrationController" or "Sign Up" View.
My questions:
Should I use "Individual Authentication"?
How to assign Role to user at the registration?
How to edit Sign up page (which is currently hidden in my VisualStudio, despite that I can register new users) to add dropdown.
Thank you so much for your help!
Should I use "Individual Authentication"?
Yes, Individual User Accounts
How to assign Role to user at the registration?
example:
_userManager.AddToRoleAsync(user, "Admin")
NB: the role has to have already been added to the database using the role manager.
How to edit Sign up page (which is currently hidden in my VisualStudio, despite that I can register new users) to add dropdown.
To update your view you need to right-click on your project and Select Add> New Scaffolded Item > Identity. Your view will be in Area section and you can make the needed changes.
I also recommend looking over the documentation if you haven't already
done so:
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/add-user-data?view=aspnetcore-5.0&tabs=visual-studio
Hope this hepls.
I'm trying to connect my current MS Access forms to SharePoint online. I was able to fetch and feed data without any problem. My only problem is that I want to share the front end to multiple users, but I also need to create a login form to check whether they have access to SharePoint online or not.
Is there a way to add a username/password to the below connection string?
"Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=2;RetrieveIds=Yes;DATABASE=https://CompanySharepoint.com/Lists/;"
Nope.
Access will determine if the user is able to login using integrated authentication. This means that users that don't have access to SharePoint won't be able to access the lists.
Depending on your SharePoint config, they might get an error message, or might get a prompt asking them for a username and password. As long as you're cleaning the cache properly, they won't be able to access any data if they have no permission to view the data on SharePoint.
I am integrating sharepoint in Iphone app.
I want to hide/unhide few UI component on the basis of User role/permission defined in sharepoint.
Please suggest me any straight query to get the role object or any other way to achieve this.
use REST to get groups and go from there: https://msdn.microsoft.com/en-us/library/office/dn531432.aspx
I have an custom claims provider that uses a IP-STS on Sharepoint 2010.
I want that a particular claim that comes from the IP-STS to map the Sharepoint user profile.
i.e:
Map the http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress claim to the "work email" field on the sharepoint's user profile
I want to do this automatically on the first time the user logs in, without any additional steps.
How can we accomplish that?
Just for your information, I've been researching pretty hard about it:
Even if I map it when I install the claims provider, this way:
$map = New-SPClaimTypeMapping "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "Email" -SameAsIncoming
I can't see the right info on the Sharepoint user profile.
Any help?
Thanks in advance
Is it possible to track user actions in SharePoint from a Web Part? Or even better...does SharePoint 2010 automatically tracks users actions?
Yes, you can enable Auditing and read the Audit log programatically :
http://msdn.microsoft.com/en-us/library/bb466223(v=office.12).aspx