powerplatform-vscode icon indicating copy to clipboard operation
powerplatform-vscode copied to clipboard

query specific field while listing environments

Open sanjeev40084 opened this issue 2 years ago • 0 comments

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.

sanjeev40084 avatar Aug 18 '22 20:08 sanjeev40084