summary import { WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function listUsersForAStaticSite ( ) { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" ; const resourceGroupName = "rg" ; const name = "testStaticSite0" ; const authprovider = "all" ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const resArray = new Array ( ) ; for await ( let item of client . staticSites . listStaticSiteUsers ( resourceGroupName , name , authprovider ) ) { resArray . push ( item ) ; } console . log ( resArray ) ; } listUsersForAStaticSite ( ) . catch ( console . error ) ;