Follow a site programmatically on behalf of another user

Copper Contributor

I have a site in SharePoint Online that I would like all users in my organization to follow.  I have been trying to use CSOM, Powershell and Rest to achieve that with no success - I can only do that for the current user.  
Ideally, I would like the process to run every night and set all new users and users who "un-followed" my site to follow it again. Is it possible? 

4 Replies

I know that this does not directly answer your question, but did you know that a SharePoint tenant admin can update the list of "Featured Links" that are displayed on the SharePoint home page?

 

TechCommunity1.pngTechCommunity2.png

Thanks for the response.  I am aware of the featured links. We want the users to see the corporate site news displayed in the SharePoint home page though.  

Yesterday we found this release note:

https://mspoweruser.com/microsoft-announces-new-sharepoint-onedrive-features/ that says a new feature is being released that allows creation of Communication sites. Looks like the decision is to wait for that feature.

Did you found a way to achieve what your goal, we have the same request.

You can achieve this using the Microsoft Graph API. See - https://docs.microsoft.com/en-us/graph/api/site-follow