Condition Based on User Group in Scheduled Report Email or Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago - last edited 42m ago
HI guys.
I would like to know if it's possible to set a condition in the Scheduled Email of Report or in the Report, based on the groups the user belongs to.
In my use case, I need the user to not receive the report if they are part of a specific group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
47m ago
Can you add some more context this question?
Are you trying to send the report to members of one or more specific groups? If that's the case, you would use the Groups filter (pictured in the top half of your screenshot) to select the desired groups. Then the scheduled report would get sent to the members of those groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
41m ago
I forgot about that part. I need the user to not receive the report if they are part of a specific group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
26m ago
I don't believe there is a no code way to exclude members of a specific group using the scheduled report form fields. But there is a the conditional check box on the form. If you check that, a condition field will appear that allows you to add a script which could achieve your goal.
You could also create a scheduled job that adds users to a report group based on certain conditions. For example: Add all itil users who are do have a membership in Group A to Group B. This could be setup to run daily, hourly, etc based on the turnover frequency in your organization.
Then set Group B as recipient group on your scheduled report.
