Forum Discussion

Lam01007's avatar
Lam01007
Copper Contributor
Dec 12, 2019

Column permission & column formatting

Hi all,

 

I would like to hide the column (or column's content) for the SharePoint List view, if the user not a member of the specified SharePoint Group.

 

Can I achieve the above by using Column Formatting (with JSON), or any other suggestion?

 

Thanks,

 

Lam

5 Replies

  • Joao Livio's avatar
    Joao Livio
    Iron Contributor

    Try JSLink

    Sample
    https://www.c-sharpcorner.com/article/js-link-client-side-rendering-to-showhide-specific-fields-based-on-user-group/

    • Not for SharePoint Online Today my friend...JSLINK is only supported in classic experiences
      • Joao Livio's avatar
        Joao Livio
        Iron Contributor
        I never said it was, that’s because you can migrate from on premises in a full modern approach or an hybrid that’s the most used technically used migration context.

        Intention here is give an opinion that will fit or not. But thank you for bringing this up.

        Best
  • No, there are no properties available or anyway to query the logged in users security groups through the JSON request.

Resources