Posts

Showing posts from April, 2025

Add Users in Azure AD Group

  Add Users in Azure AD groups using c#   Azure App Registration Steps Step 1: Go to Azure Portal Open: https://portal.azure.com Sign in with your Azure AD Admin account. Step 2: Open App Registrations In the search bar at the top, type "App registrations" and click it. Click "New registration". Step 3: Register the App Name: Enter a name like GraphApiApp or GroupManagerApp. Supported account types: Select "Accounts in this organizational directory only" (for your tenant). Redirect URI: Leave blank (not needed for backend apps) or add https://localhost (for testing). Click "Register". Step 4: Configure API Permissions After registration, in the app page: Go to API permissions → Click "Add a permission" → Microsoft Graph → Application permissions (Important!). Search and select these permissions: GroupMember.Rea...