You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/articles/registerapplication.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,26 +31,29 @@ Another option is to manually create the application registration in Entra ID. W
31
31
32
32
1.[Navigate to the Entra ID portal](https://entra.microsoft.com) and authenticate with an account that has permissions to create application registrations
33
33
34
-
1. Using the menu on the left, go to _Identity_ > _Applications_ > _App registrations_
34
+
1. Using the menu on the left, go to _Entra ID_ > _App registrations_
1. In the _Name_ field, enter any name you would like which indicates to you what the purpose of this script is. Leave the rest of the fields as they are and click on _Register_ at the bottom of the page.
42
+
1. In the _Name_ field, enter any name you would like which indicates to you what the purpose of this script is. (We recommend _PnP.PowerShell_ so the name matches the module.) Leave the rest of the fields as they are and click on _Register_ at the bottom of the page.
1. Take note of the _Application (client) ID_ value, as you will use this to connect to PnPPowerShell using the application registration you have just created
46
+
1. Take note of the _Application (client) ID_ value, as you will use this to connect to PnP.PowerShell using the application registration you have just created
1. In the _Configured permissions_ section, click on the three dots in the line that reads _Microsoft Graph (1)_ and click on _Remove all permissions_ and click on _Yes, remove_ in the confirmation dialog that will show up.
79
+
1. In the _Configured permissions_ section, click on the three dots in the line that reads _Microsoft Graph (1)_ and click on _Remove all permissions_ and click on _Yes, remove_ in the confirmation dialog that will show up. This lets us start with a clean set of permissions.
1. Expand _AllSites_ and check the box for _AllSites.Read_ or any other permission you wish to use with your application registration and click on _Add permissions_ at the bottom
95
+
1. Expand _AllSites_ and check the box for _AllSites.Read_ or any other permission you wish to use with your application registration and click on _Add permissions_ at the bottom. It's important to note here that _Delegated Permissions_ means that adding a permission level here does not mean that anyone gets those permissions. Any user running scripts must have the permissions they are trying to use. The App Registration effectively acts as a broker between the user's permissions and the permissions the App Registration allows. The permissions you'll want to grant here will vary based on the work you need people to be able to do. The article [What permissions the PnP Management Shell app had in the past?](https://pkbullock.com/blog/2024/permissions-for-pnp-management-shell-app) from [Paul Bullock, MVP and PnP Team Member](https://www.linkedin.com/in/pkbullock/) is a great primer on what you might want to add.
1. In the panel on the right, select _No, remove other granted permissions_ and click on _Grant admin consent_ at the bottom. In the confirmation dialog that appears, click _Yes_.
105
+
1.If you had previously granted permissions to this App Registration and are making changes, you may see the _Grant admin consent panel_. If not, skip to the next step. In the panel on the right, select _No, remove other granted permissions_ and click on _Grant admin consent_ at the bottom. In the confirmation dialog that appears, click _Yes_.
1. The _Configured permissions_ section should now look similar to the screenshot below. You can now use this application to [connect to PnP PowerShell](authentication.md) or [add additional permissions](determinepermissions.md) to this application registration as necessary.
If you plan to use App Registration access only, then you can stop here.
114
+
110
115
## Setting up access to your own Entra ID App for App Only Access
111
116
112
117
If you're looking to register an application in Entra ID to use PnP PowerShell with a script that will run without requiring user interaction, App Only described in this section is what you want to go with.
0 commit comments