Azure AD Remote Source and Validations Examples

This article provides examples of how EvOps can use Functions to populate fields with data and validate inputs in real-time querying Azure AD.

Prerequisites

Function App

Follow the instruction in the article Setting up a Function to access Azure AD data to create a Function App with a certificate-based authentication configured, that is a prerequisite for the below examples. Make sure to gather the Azure AD Tenant ID, Application ID, and Thumbprint available for the authentication configuration in the scripts below.

Azure AD Permissions

For the examples in this article, the service principal configured in the Function App needs to have read permission in Azure AD. The example below will add the service principal to the Directory Readers role. Depending on your scenarios, you may limit or provide additional permissions for the service principal.