Glossary
Terms used across Klef
Policy Anatomy
Explanation of Klef’s policy model
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
policy "Employee lifecycle" {
category = "Company-wide"
applies = everyone
stage active {
target microsoft_entra.user {
userPrincipalName = worker.business_email
displayName = worker.display_name
jobTitle = worker.job.name
accountEnabled = true
licenses = ["SPE_E3"]
}
notify email "welcome" {
send = once
subject = "Your Microsoft account"
body = "Get your first sign-in here: {{ microsoft_entra.sign_in_url }}"
to = [worker.personal_email]
}
}
stage terminated {
target microsoft_entra.user {
userPrincipalName = worker.business_email
accountEnabled = false
licenses = []
}
}
}
Was this page helpful?