Column permission & column formatting

%3CLINGO-SUB%20id%3D%22lingo-sub-1063935%22%20slang%3D%22en-US%22%3EColumn%20permission%20%26amp%3B%20column%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1063935%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20hide%20the%20column%20(or%20column's%20content)%20for%20the%20SharePoint%20List%20view%2C%20if%20the%20user%20not%20a%20member%20of%20the%20specified%20SharePoint%20Group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20achieve%20the%20above%20by%20using%20Column%20Formatting%20(with%20JSON)%2C%20or%20any%20other%20suggestion%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1063935%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064028%22%20slang%3D%22en-US%22%3ERe%3A%20Column%20permission%20%26amp%3B%20column%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064028%22%20slang%3D%22en-US%22%3ENo%2C%20there%20are%20no%20properties%20available%20or%20anyway%20to%20query%20the%20logged%20in%20users%20security%20groups%20through%20the%20JSON%20request.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064121%22%20slang%3D%22en-US%22%3ERe%3A%20Column%20permission%20%26amp%3B%20column%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064121%22%20slang%3D%22en-US%22%3EBut%20you%20can%20I%20think%20you%20should%20be%20able%20to%20do%20this%20with%20a%20SPFx%20Extension%20(Field%20Customizer%20type)%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fextensions%2Foverview-extensions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fextensions%2Foverview-extensions%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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

2 Replies
Highlighted
No, there are no properties available or anyway to query the logged in users security groups through the JSON request.
Highlighted
But you can I think you should be able to do this with a SPFx Extension (Field Customizer type): https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/overview-extensions