pp website webrole list
Lists all webroles for the specified Power Pages website.
Usage
m365 pp website webrole list [options]
Options
--websiteId [websiteId]ID of the Power Pages website. Specify either
websiteIdorwebsiteNamebut not both.--websiteName [websiteName]The unique name (not the display name) of the Power Pages website. Specify either
websiteIdorwebsiteNamebut not both.-e, --environmentName <environmentName>The name of the environment where the Power Pages websites are located.
--asAdminRun the command as admin and retrieve Power Pages websites for environments you do not have explicitly assigned permissions to.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Permissions
- Delegated
| Resource | Permissions |
|---|---|
| Power Platform API | PowerPages.Websites.Read |
| Dynamics CRM | user_impersonation |
Examples
List all webroles for the site by name.
m365 pp website webrole list --websiteName "Contoso" --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
List all webroles for the site by name as admin.
m365 pp website webrole list --websiteName "Contoso" --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --asAdmin
List all webroles for the site by id.
m365 pp website webrole list --websiteId "2ca3eaa5-140f-4175-8261-3272edf9f339" --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
List all webroles for the site by id as admin.
m365 pp website webrole list --websiteId "2ca3eaa5-140f-4175-8261-3272edf9f339" --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --asAdmin
Response
- JSON
- Text
- CSV
- Markdown
[
{
"mspp_webroleid": "a242a363-6077-4cb7-b2d1-1714502d129a",
"mspp_name": "Anonymous Users",
"mspp_description": "Role for anonymous users",
"mspp_key": null,
"mspp_authenticatedusersrole": false,
"mspp_anonymoususersrole": true,
"mspp_createdon": "2026-01-21T22:10:56Z",
"mspp_modifiedon": "2026-01-21T22:10:56Z",
"statecode": 0,
"statuscode": 1,
"_mspp_websiteid_value": "5eb107a6-5ac2-4e1c-a3b9-d5c21bbc10ce",
"_mspp_createdby_value": "b7aa2026-a8c1-f011-bbd2-000d3a66196e",
"_mspp_modifiedby_value": "b7aa2026-a8c1-f011-bbd2-000d3a66196e"
}
]
mspp_webroleid mspp_name statuscode
------------------------------------ --------------- ----------
a242a363-6077-4cb7-b2d1-1714502d129a Anonymous Users 1
mspp_modifiedon,mspp_key,mspp_description,mspp_authenticatedusersrole,statecode,_mspp_createdby_value,statuscode,mspp_anonymoususersrole,mspp_webroleid,mspp_createdon,_mspp_modifiedby_value,mspp_name,_mspp_websiteid_value
2026-01-21T22:10:56Z,,Role for anonymous users,0,0,b7aa2026-a8c1-f011-bbd2-000d3a66196e,1,1,a242a363-6077-4cb7-b2d1-1714502d129a,2026-01-21T22:10:56Z,b7aa2026-a8c1-f011-bbd2-000d3a66196e,Anonymous Users,5eb107a6-5ac2-4e1c-a3b9-d5c21bbc10ce
# pp website webrole list --websiteName "Contoso" --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
Date: 2/8/2026
Property | Value
---------|-------
mspp\_modifiedon | 2026-01-21T22:10:53Z
mspp\_description | Role for anonymous users
mspp\_authenticatedusersrole | true
statecode | 0
\_mspp\_createdby\_value | b7aa2026-a8c1-f011-bbd2-000d3a66196e
statuscode | 1
mspp\_anonymoususersrole | false
mspp\_webroleid | cc3bf86b-204c-4a97-b0b6-f788c62ae5e8
mspp\_createdon | 2026-01-21T22:10:53Z
\_mspp\_modifiedby\_value | b7aa2026-a8c1-f011-bbd2-000d3a66196e
mspp\_name | Authenticated Users
\_mspp\_websiteid\_value | 5eb107a6-5ac2-4e1c-a3b9-d5c21bbc10ce