mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 01:41:36 +00:00
sso v1 and delete assignments
This commit is contained in:
@@ -11872,6 +11872,8 @@ def ProcessGAMCommand(args):
|
||||
gapi_cloudidentity_inboundsso.delete_profile()
|
||||
elif argument in ['inboundssocredential', 'inboundssocredentials']:
|
||||
gapi_cloudidentity_inboundsso.delete_credentials()
|
||||
elif argument in ['inboundssoassignment', 'inboundssoassignments']:
|
||||
gapi_cloudidentity_inboundsso.delete_assignment()
|
||||
elif argument == 'resource':
|
||||
gapi_directory_resource.deleteResourceCalendar()
|
||||
elif argument == 'mobile':
|
||||
|
||||
@@ -35,7 +35,7 @@ def get_orgunit_id(orgunit):
|
||||
|
||||
'''build Cloud Identity API'''
|
||||
def build():
|
||||
return gapi_cloudidentity.build('cloudidentity_beta')
|
||||
return gapi_cloudidentity.build('cloudidentity')
|
||||
|
||||
|
||||
'''parse cmd for profile create/update'''
|
||||
@@ -484,6 +484,16 @@ def update_assignment():
|
||||
controlflow.system_error_exit(3, 'Update did not finish {result}')
|
||||
|
||||
|
||||
'''gam delete inboundssoassignment'''
|
||||
def delete_assignment():
|
||||
ci = build()
|
||||
assignment = assignment_by_target(sys.argv[3], ci).get('name')
|
||||
print(f'Deleting Inbound SSO Assignmnet {assignment}...')
|
||||
gapi.call(ci.inboundSsoAssignments(),
|
||||
'delete',
|
||||
name=assignment)
|
||||
|
||||
|
||||
'''gam info inboundssoassignment'''
|
||||
def info_assignment():
|
||||
ci = build()
|
||||
|
||||
Reference in New Issue
Block a user