Avoid scanning every group which causes errors to be logged due to no permissions. Only scan Owners, Members and Viewer groups. Will also only remove from those groups. We still only add to Members.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
For bcgov contributors:
this PR fixes jira ticket: put the jira ticket # here
Description
Avoid scanning every group which causes errors to be logged due to no permissions. Only scan Owners, Members and Viewer groups. Will also only remove from those groups. We still only add to Members.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
For bcgov contributors:
this PR fixes jira ticket: put the jira ticket # here