Group Member utility script include for retrieving and managing group memberships #1782
Conversation
Utility Script Include for managing user-group relationships. It provides methods to: Retrieve users in a group (getGroupMembers) Retrieve groups a user belongs to (getUserGroups) Add users to a group (addGroupMembers) Remove users from a group (removeGroupMembers) Supports both client and server-side operations.
Detailed description
There was a problem hiding this comment.
Thank you for your contribution. However, it doesn’t comply with our contributing guidelines. As a reminder, the general requirements (as outlined in the CONTRIBUTING.md file) are the following: follow the folder+subfolder+snippetfolder guidelines and include a readme.md file explaining what the code snippet does. Review your contribution against the guidelines and make the necessary adjustments.
@AnandMahajan2799 - As this is your 1st ever pull request. Please update the PR Title to proceed further
am-shakeel
left a comment
There was a problem hiding this comment.
🎉 Congratulations on your first approved PR!
Thank you for your persistence and for finally aligning with the contribution guidelines. Your effort is appreciated—keep up the great work and continue contributing to the community!
PR Description:
Created a utility script include for managing user-group relationships.
It provides methods to:
Retrieve users in a group (getGroupMembers)
Retrieve groups a user belongs to (getUserGroups)
Add users to a group (addGroupMembers)
Remove users from a group (removeGroupMembers)
Supports both client and server-side operations.
Ideal for use in server scripts, GlideAjax calls, reference qualifiers, etc to streamline group membership management.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions