--- title: "Making bulk changes to role and path" slug: "making-bulk-changes-to-role-and-path" updated: 2026-11-13T11:43:43Z published: 2026-11-13T11:43:43Z canonical: "kb.secomea.com/making-bulk-changes-to-role-and-path" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.secomea.com/llms.txt > Use this file to discover all available pages before exploring further. # Making bulk changes to role and path ## Making bulk changes to role and path It is possible to execute changes to role and path in bulk. Please refer to this example for the needed syntax. ``` Connect-MgGraph -Scopes "User.ReadWrite.All" # Bulk (users.csv with: userPrincipalName,role,path) # user1@acme.com,DOM,Europe/Germany # user2@acme.com,DOM,Europe/Denmark Import-Csv "./users.csv" | ForEach-Object { Update-MgUser -UserId $_.userPrincipalName -OnPremisesExtensionAttributes @{ ExtensionAttribute1 = $_.role ExtensionAttribute2 = $_.path } } ```