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
or download and extract the repository .zip file. Make sure you're working in the PersonalAccessTokenApiAppSample directory.
47
47
48
48
> Given that the name of the sample is quite long, you might want to clone it in a folder close to the root of your hard drive, to avoid file name length limitations when running on Windows.
49
49
50
50
### Step 2: Register the sample application with your Azure Active Directory tenant
51
51
52
-
There is one project in this sample. To register it, you can:
53
-
54
-
- either follow the steps [Step 2: Register the sample with your Azure Active Directory tenant](#step-2-register-the-sample-with-your-azure-active-directory-tenant) and [Step 3: Configure the sample to use your Azure AD tenant](#choose-the-azure-ad-tenant-where-you-want-to-create-your-applications)
55
-
- or use PowerShell scripts that:
56
-
-**automatically** creates the Azure AD applications and related objects (passwords, permissions, dependencies) for you
57
-
- modify the applications' configuration files.
58
-
59
-
If you want to use this automation:
60
-
61
-
1. On Windows, run PowerShell and navigate to the root of the cloned directory
62
-
1. In PowerShell run:
63
-
64
-
```PowerShell
65
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
66
-
```
67
-
68
-
1. Run the script to create your Azure AD application and configure the code of the sample application accordingly.
69
-
1. In PowerShell run:
70
-
71
-
```PowerShell
72
-
cd .\AppCreationScripts\
73
-
.\Configure.ps1
74
-
cd ..
75
-
```
76
-
77
-
> Other ways of running the scripts are described in [App Creation Scripts](./AppCreationScripts/AppCreationScripts.md)
78
-
79
-
If you don't want to use this automation, follow the steps below.
80
-
81
52
#### Choose the Azure AD tenant where you want to create your applications
82
53
83
54
As a first step you'll need to:
@@ -107,8 +78,8 @@ As a first step you'll need to:
107
78
1. Select the **API permissions** section
108
79
- Click the **Add a permission** button and then,
109
80
- Ensure that the **Microsoft APIs** tab is selected
110
-
- In the *Commonly used Microsoft APIs* section, click on **Microsoft Graph**
111
-
- In the **Delegated permissions** section, ensure that the right permissions are checked: **User.ReadBasic.All**. Use the search box if necessary.
81
+
- In the *Commonly used Microsoft APIs* section, click on **Azure DevOps**
82
+
- In the **Delegated permissions** section, ensure that the right permissions are checked: **user_impersonation**. Use the search box if necessary.
112
83
- Select the **Add permissions** button
113
84
114
85
### Step 3: Configure the sample to use your Azure AD tenant
0 commit comments