To track how users interact with your repositories, we recommend that you uncheck the Allow Anonymous Access setting described above. This means that users will be required to enter their username and password when using their NuGet clients.
You can configure your NuGet client to require a username and password using the following command:
nuget sources update -Name Artifactory -UserName admin -Password password
You can verify that your setting has taken effect by checking that the following segment appears in your %APPDATA%\NuGet\NuGet.Config file:
<packageSourceCredentials>
<Artifactory>
<add key="Username" value="admin" />
<add key="Password" value="...encrypted password..." />
</Artifactory>
</packageSourceCredentials>Note
NuGet.Config file can also be placed in your project directory, for further information please refer to NuGet Configuration File