mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
sso v1 and delete assignments
This commit is contained in:
@@ -11872,6 +11872,8 @@ def ProcessGAMCommand(args):
|
|||||||
gapi_cloudidentity_inboundsso.delete_profile()
|
gapi_cloudidentity_inboundsso.delete_profile()
|
||||||
elif argument in ['inboundssocredential', 'inboundssocredentials']:
|
elif argument in ['inboundssocredential', 'inboundssocredentials']:
|
||||||
gapi_cloudidentity_inboundsso.delete_credentials()
|
gapi_cloudidentity_inboundsso.delete_credentials()
|
||||||
|
elif argument in ['inboundssoassignment', 'inboundssoassignments']:
|
||||||
|
gapi_cloudidentity_inboundsso.delete_assignment()
|
||||||
elif argument == 'resource':
|
elif argument == 'resource':
|
||||||
gapi_directory_resource.deleteResourceCalendar()
|
gapi_directory_resource.deleteResourceCalendar()
|
||||||
elif argument == 'mobile':
|
elif argument == 'mobile':
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ def get_orgunit_id(orgunit):
|
|||||||
|
|
||||||
'''build Cloud Identity API'''
|
'''build Cloud Identity API'''
|
||||||
def build():
|
def build():
|
||||||
return gapi_cloudidentity.build('cloudidentity_beta')
|
return gapi_cloudidentity.build('cloudidentity')
|
||||||
|
|
||||||
|
|
||||||
'''parse cmd for profile create/update'''
|
'''parse cmd for profile create/update'''
|
||||||
@@ -484,6 +484,16 @@ def update_assignment():
|
|||||||
controlflow.system_error_exit(3, 'Update did not finish {result}')
|
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'''
|
'''gam info inboundssoassignment'''
|
||||||
def info_assignment():
|
def info_assignment():
|
||||||
ci = build()
|
ci = build()
|
||||||
|
|||||||
Reference in New Issue
Block a user