react-directory Enhancement to filter results by Entra Group ID. #6463
netmatrixtech
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
5.0.1.0.zip
Upon using version 5.0.0.0 of react-directory to search for user properties/contact info, I noticed it was pulling all accounts including Admin accounts, External Guest Accounts, and Exchange Contacts into the results, which I didn't want. I've updated the code and now added an Entra Group ID field to the Webpart properties UI where you can now filter the result to specific accounts by group. So, if you have a 'All Employees' group you can simply use the Group Object ID to show only those users. Or if you wanted to use the webpart in another page to only show specific Contacts, then just add the group object ID for a group that contains the contacts you want.
The attached zip 5.0.1.0.zip contains only the code files I edited form the original v5.0.0.0 and I've added a CHANGELOG.md for further information regarding the changes. Requires MS Graph GroupMemeber.Read.All permissions in SharePoint API.

Please feel free to use and add this into your published react-directory. Note that building does generate warnings but aren't a major concern.
cheers
Tim
All reactions