I have a requirement to fetch all active directory users data to be added in sharepoint list and show on different pages.
How we can achieve this?
see below to get C# code to do that. Depending upon the sharepoint api (Server object model/CSOM/JSOM) you are using, you would have to take the results from this code to your pages.
How can I get a list of users from active directory?
Related
i am trying to use SharePoint API to manage people that can access to some specifics folders , is it possible ?
thanks for your help and your time <3
You could use the Rest API in order to break inheritance/delete unique assignments, add permissions to unique users or groups.
You can check out some examples on this link.
You can also use Power Automate SharePoint Connector Actions in order to achieve the same result. Here are some of the actions you can take:
Grant access to an item or a folder
Stop sharing an item or a file
Send an HTTP request to SharePoint (this action can be used in order to achieve composite results)
I hope these were some of the options that you were looking for.
I have 10 qlikview app in AccessPoint and for specific user i want to show only 7 app.
I don't wont to use Section Access.
I use NTFS authorization
And on folder Production (where save qvw app for browser) in Properties Security i remove specific user but he still see app...
How can I handle this?
By your description it sounds like you are using publisher.
If you want to display certain QVW's to certain users, then you need to setup the distribution to "Named Users", that way you can only add users to the relevant apps and the people that are not named will not see the QVW on the accesspoint.
Also make sure on the actual QVW (right click on it, properties, security) that only the relevant people have security rights on the file.
I need to set up IP filtering in a SharePoint document library based on a group that a user is a member of. More specifically, we have groups set up for each of our customers. Each group should have an allowed IP address attached to it. When a user accesses this document library, we then need to ensure that the user is coming from the IP address attached to their customer group. The IP filtering would only apply to a single document library, not the entire site.
My only idea so far is to create a webpart that checks the user's IP address and redirects if it isn't correct. Then I could put that webpart at the top of a webpart page, and display the document library webpart below that. That's a little hokey, so I was hoping someone had a better idea.
The problem with your proposed solution of a webpart on the AllItems.aspx page is that there multiple ways to get to a document and this would not prevent someone with a direct URL from accessing the document.
You want to take advantage of SharePoint's permission structure. If the documents can be grouped by security, then you could create one library per customer (or one folder within a single library) and set the permissions based on your SharePoint groups for the library/folder. That may not work for you if you need to have one document that is available to multiple groups.
Another option is to set the library security to be restricted to only one system account. Then you could write a webpart (or application page) that checked the user's IP address and using RunWithElevatedPermissions you could get the contents of the libary that are applicable to that user. That would solve the issue of a direct link because they would have to go through your page to access the documents.
I am working on SharePoint 2010 instance. I want to be able to view list content in the SharePoint site that this list doesn't belong to. My site does not even share the same site collection as the one containing the list. Is this possible without the custom SharePoint solution coding? Thanks.
Here is a workaround:
http://sp2010.pathtosharepoint.com/SharePoint-User-Toolkit/Pages/Cross-Site-List-Snapshot.aspx
This will work across site collections, as long as the source and target pages are in the same domain. It'll work fine if your only purpose is to display the content, not use the context menus.
Other solutions like Data View Web Part or Content Query Web Part won't work across site collections.
Is it possible to create my site programmatically in SharePoint 2010?
I have added 5 users to AD (Active Directory).
These 5 users are also added in an excel file.
SharePoint 2010 sample site contains a web page where it takes an input as above excel file and on click of a button I want to create 5 my sites of those users specified in excel file with some list, document libraries already created on those my sites.
Is it possible to achieve this functionality in SharePoint 2010? At present I am looking for a code snippet which will use SharePoint 2010 object model and fulfills this requirement.
The UserProfile.CreatePersonalSite method creates a personal site (My Site) for a user.
Various methods and properties of the UserProfile class can then be used to access the site, user's colleagues, quick links, etc.