in scripts/get_auto_launch_config.py [0:0]
def get_user_id_from_user_name(self) -> str or None:
studio_ids = self.get_studio_ids()
identity_store_ids = self.get_identity_store_ids(studio_ids=studio_ids)
while True:
if self.user_name == None:
self.user_name = Prompter.prompt_for_input("Please enter the identity store user name (format: UserName@Domain). Or enter 'all' to retrieve config for all users")
if self.user_name == "all":
return None
user_id = self.identity_helper.search_identity_stores_for_user_name(user_name=self.user_name, identity_store_ids=identity_store_ids)
if user_id != None:
return user_id
Prompter.print_red(f"UserName \"{self.user_name}\" not found in any of the following identity stores: {identity_store_ids}")
self.user_name = None