What is the easiest way to add all current SharePoint users as followers on a blog? Also need to have something setup where any future users are also automatically added to this blog.
Bonus.... If they would automatically be signed up for email alerts when something is added to the blog that would be great too!
We can add all users as followers on a blog using SPSocialFollowingManager class.
For future, we can create a new security event receiver on your web site, to handle group user added and group users deleted event.
The following articles for your reference:
Programmatically Follow Documents in SharePoint 2013
How to add programmatically users as followers with new SPSecurityEventReceiver in SharePoint 2013
Related
I have a custom people picker that fetches users from a SharePoint Group, only when the users are added manually from the Group settings.
If i add the users via SPD Workflow, the people picker is failing to read the data.
Deleted the Users and tried the Workflow, it didnt work. Removed app step from workflow and tried, still no use.
Reference to add User to SPD Group using Workflow: http://codelesssharepointinfopath.com/workflow-useful-rest-calls-add-user-to-group/
Expected: People Picker should show the users from the SPD Group
Actual: No Results found
It's probably because it's a workflow (if you're using 2010 give 2013 a try). Do you get the same issue when you use Flow? If you don't get the same issue I think you need to force a refresh via the workflow. Worst case scenario you can use REST to add the user to the group through the workflow and I would imagine that would force a refresh.
Upon deletion of a site or document, I'd like the site/document to be deleted from everyone's "follow" list. However, it appears that is not happening. I've confirmed the "Activity Feed Timer Job" is functioning normally.
This is SP On Prem 2013
You have to do it yourself. The best way to do so by using event receivers. You have to check each user on the user profile and unfollow the item if they are following it.
For sites, you can use SPWebEventReceiver.SiteDeleting and for documents SPItemEventReceiver.ItemDeleting.
Is it possible, in SharePoint 2010 Foundation to find out when a user was added to a particular user group? I have full admin privileges as a site owner. I can find this information out through Audit Log reports but unfortunately I did not turn these on from day one so am looking for another method. I assume that SharePoint must be storing this information somewhere.
You can achieve this using Powershell, use the repadmin command. Like below
repadmin /showobjmeta dc1 'CN=Domain Admins,CN=Users,DC=rivendell,DC=com'
For more detail check this post
I have a scenario where I want a user when viewing a list item to be presented with a custom action to create a site. This is pretty similar to the scenario provided in the MOSS 2007 SharePoint Guidance. What makes it different is that I want the site created with the url and name taken from the list item, and then a web propertybag value set. The only user task after the site is created is for the site collection administrator to add some specific user rights to it.
I can do everything apart from prompting the user to set the site rights via the object model so should I use a workflow or just code it straight?
The benefits of a workflow would be the ability to track the task and whether it has been completed or needs escalation etc.
The answer to this question is going to be found from your own staff on how they want to manage the tasks. An email notification may suite them better. Check with them on whether the benefits of a workflow are going to be worth the development cost.
What I find is only adding existing users to a group or creating a new group, but I couldn't find anything that allows me to create new users.
I'm logged in as administrator and there are no more users anyway.
You can add users to SharePoint using 'stsadm';
take a look at Adduser: Stsadm operation (Office SharePoint Server)
I hope this helps!
You can also add a new user to your active directory domain, and then add them into your sharepoint site collection as an existing user.