Get AD groupname of login user in sharepoint online

%3CLINGO-SUB%20id%3D%22lingo-sub-1392683%22%20slang%3D%22en-US%22%3EGet%20AD%20groupname%20of%20login%20user%20in%20sharepoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392683%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20number%20of%20users%20belong%20to%20different%20differnt%20Active%20directory(AD)%20groups%20as%20bellow%20and%20this%20AD%20group%20information%3A-%3C%2FP%3E%3CP%3ETCS_Vendor%3C%2FP%3E%3CP%3EIBM_Vendor%3C%2FP%3E%3CP%3EMicrosoft_Vendor%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhen%20your%20accessing%20to%20sharepoint%20page%20and%20view%20List%2C%20I%20want%20to%20know%20user%20belong%20to%20which%20Group%20and%20filter%20list%20accordingly%2C%20so%20user%20belong%20to%20particular%20AD%20group%20can%20see%20only%20list%20item%20correspond%20to%20that%20group.each%20list%20Item%20have%20colum%20-%26gt%3BADgroupname%20to%20get%20ADgroup%20of%20users.%3C%2FP%3E%3CP%3EI%20want%20to%20show%20list%20items%20of%20user's%20group%20only%20and%20want%20to%20restrict%20him%20to%20see%20other%20group%20list%20item.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20filter%20list%20using%20user's%20AD%20group%20and%20can%20I%20able%20to%20access%20AD%20group%20information%3F%3C%2FP%3E%3CP%3Ecan%20i%20use%20Current%20user%20filter%20webpart%20in%20office%20online%20to%20complete%20this%20task%20or%20is%20there%20any%20other%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,

 

I have number of users belong to different differnt Active directory(AD) groups as bellow and this AD group information:-

TCS_Vendor

IBM_Vendor

Microsoft_Vendor

 

when your accessing to sharepoint page and view List, I want to know user belong to which Group and filter list accordingly, so user belong to particular AD group can see only list item correspond to that group.each list Item have colum ->ADgroupname to get ADgroup of users.

I want to show list items of user's group only and want to restrict him to see other group list item.

 

Can I filter list using user's AD group and can I able to access AD group information?

can i use Current user filter webpart in office online to complete this task or is there any other way?

 

 

 

 

 

0 Replies