def getGroupById()

in scenario-notebooks/UserSecurityMetadata/Entities.py [0:0]


    def getGroupById(groupId):
        rawoutput = executeProcess(
            f'az ad group show --group {groupId} --query [displayName,mail,objectId] --output tsv'.split(' '))
        output = rawoutput.split('\n')
        if len(output) != 3:
            raise Exception(
                f'Unable to get AAD Group with Id - {groupId}. Error - {rawoutput}')
        else:
            group = Group(output[0], output[1], output[2])
            return group