Skip to content

Commit 8792211

Browse files
author
Phil Rzewski
committed
Have Additional Permissions all start out unchecked to match GUI behavior
1 parent 46fa282 commit 8792211

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdcclient/_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,12 +1013,16 @@ def get_user_ids(self, users):
10131013
u = filter(lambda x: x['username'] in users, res.json()['users'])
10141014
return [True, map(lambda x: x['id'], u)]
10151015

1016-
def create_team(self, name, users=[], filter='', description='', show='host', theme='#7BB0B2'):
1016+
def create_team(self, name, users=[], filter='', description='', show='host', theme='#7BB0B2',
1017+
perm_capture=False, perm_custom_events=False, perm_aws_data=False):
10171018
reqbody = {
10181019
'name': name,
10191020
'description': description,
10201021
'theme': theme,
10211022
'show': show,
1023+
'canUseSysdigCapture': perm_capture,
1024+
'canUseCustomEvents': perm_custom_events,
1025+
'canUseAwsMetrics': perm_aws_data,
10221026
}
10231027

10241028
# Map user-names to IDs

0 commit comments

Comments
 (0)