Forum Discussion

Paul Ciolkiewicz's avatar
Paul Ciolkiewicz
Copper Contributor
May 16, 2017

Follow a site programmatically on behalf of another user

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

  • TravisL77's avatar
    TravisL77
    Copper Contributor

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

  • 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?

     

    • Paul Ciolkiewicz's avatar
      Paul Ciolkiewicz
      Copper Contributor

      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.

      • Jeff Bouchard's avatar
        Jeff Bouchard
        Copper Contributor

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

Resources