Skip to content

Conversation

@samuel-soubeyran
Copy link
Contributor

@samuel-soubeyran samuel-soubeyran commented Jun 9, 2023

Add a script to add or remove team members through the API.

Copy link
Contributor

@HiranmayaGundu HiranmayaGundu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

if args.dry_run:
print(args)
client = SigmaClient(args.env, args.cloud, args.client_id, args.client_secret)
payload = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This can be

payload = {
  'add': args.add,
 'revoke': args.revoke
}
if args.file:
   # do the rest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants