Combine Jinja lists
Step one - List M365 users on a tenant
{{-
[
{
"displayName": user_info.displayName,
"user_id": user_info.id,
"jobTitle": user_info.jobTitle,
"mail": user_info.mail,
"username": user_info.userPrincipalName,
"accountEnabled": user_info.accountEnabled,
"licences": user_info.assignedLicenses,
"businessPhone": user_info.businessPhones,
"mobilePhone": user_info.mobilePhone,
"city": user_info.city,
"user_created_date": user_info.createdDateTime,
"department": user_info.department,
"last_password_change": user_info.lastPasswordChangeDateTime,
"is_synced_user": user_info.onPremisesSyncEnabled,
"street_address": user_info.streetAddress,
"user_type": user_info.userType
}
for user_info in TASKS.list_m365_users.result.result.data.value
]
-}}Alternative method
Last updated
Was this helpful?
