Return only members of the group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2024 06:45 AM - edited 08-31-2024 07:08 AM
I am working on below script. I want to compare these arrays var directReports = [], var managerReports = [], var appGroupMembers = []
At end return only matching users . please help me. Currently I am not gettting the output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2024 12:17 AM - edited 09-01-2024 12:18 AM
Hi @Mannam Praveen ,
I am little confused here.
directReports[] - users to whom I am the manager
managerReports[] - users to whom my manager is the manager.
Now, how can there be similar users in these two arrays. Because, Manager is only one field on the user.
It can be ME or My manager.
Or,
the question is get the users to whom I am the manager
get the users to whom my manager is the manager
Now compare them with the users who are also in appGroupMembers[] ?
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2024 07:10 AM
we need compare these two arrays var directReports = [], var managerReports = [] with var appGroupMembers = [] and get only reporting mebers if they part of the group and return it