powerplatform-vscode
powerplatform-vscode copied to clipboard
query specific field while listing environments
i am trying to assign security role to multiple environments to one of my user. the process i was planning to follow was to retrieve all 'sandbox' environment-id first and loop through each of those environment id to use 'pac admin assign-user' command to assign the security role to the user. however i haven't figure out a way just to select 'environment id' or 'environment url' while running 'pac admin list' command. Is there a way i can just get those fields (environment url or environment id), save in some sort of array and be able to loop through.