-
-
Save jdyke/8179876b7a0deebefeb7a457e59beaca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Check if member is still bound to resource | |
def check_member_on_resource(outside_member_ids, resource_bindings): | |
for bindings in resource_bindings: | |
for values in bindings.values(): | |
for member in outside_member_ids: | |
if member in values: | |
try: | |
print(f"Member found: {member}") | |
return True | |
except: | |
logging.info("Did not find the anomalous member.") | |
continue | |
else: | |
logging.debug("Did not find the anomalous member.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment