{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/20365","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/20365/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/20365/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/20365/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/20365","id":389512295,"node_id":"MDU6SXNzdWUzODk1MTIyOTU=","number":20365,"title":"P2 License Count","user":{"login":"grayjeremy","id":37842906,"node_id":"MDQ6VXNlcjM3ODQyOTA2","avatar_url":"https://avatars1.githubusercontent.com/u/37842906?v=4","gravatar_id":"","url":"https://api.github.com/users/grayjeremy","html_url":"https://github.com/grayjeremy","followers_url":"https://api.github.com/users/grayjeremy/followers","following_url":"https://api.github.com/users/grayjeremy/following{/other_user}","gists_url":"https://api.github.com/users/grayjeremy/gists{/gist_id}","starred_url":"https://api.github.com/users/grayjeremy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grayjeremy/subscriptions","organizations_url":"https://api.github.com/users/grayjeremy/orgs","repos_url":"https://api.github.com/users/grayjeremy/repos","events_url":"https://api.github.com/users/grayjeremy/events{/privacy}","received_events_url":"https://api.github.com/users/grayjeremy/received_events","type":"User","site_admin":false},"labels":[{"id":646555990,"node_id":"MDU6TGFiZWw2NDY1NTU5OTA=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/active-directory/svc","name":"active-directory/svc","color":"0040cc","default":false}],"state":"open","locked":false,"assignee":{"login":"neeleshray","id":31060822,"node_id":"MDQ6VXNlcjMxMDYwODIy","avatar_url":"https://avatars2.githubusercontent.com/u/31060822?v=4","gravatar_id":"","url":"https://api.github.com/users/neeleshray","html_url":"https://github.com/neeleshray","followers_url":"https://api.github.com/users/neeleshray/followers","following_url":"https://api.github.com/users/neeleshray/following{/other_user}","gists_url":"https://api.github.com/users/neeleshray/gists{/gist_id}","starred_url":"https://api.github.com/users/neeleshray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neeleshray/subscriptions","organizations_url":"https://api.github.com/users/neeleshray/orgs","repos_url":"https://api.github.com/users/neeleshray/repos","events_url":"https://api.github.com/users/neeleshray/events{/privacy}","received_events_url":"https://api.github.com/users/neeleshray/received_events","type":"User","site_admin":false},"assignees":[{"login":"neeleshray","id":31060822,"node_id":"MDQ6VXNlcjMxMDYwODIy","avatar_url":"https://avatars2.githubusercontent.com/u/31060822?v=4","gravatar_id":"","url":"https://api.github.com/users/neeleshray","html_url":"https://github.com/neeleshray","followers_url":"https://api.github.com/users/neeleshray/followers","following_url":"https://api.github.com/users/neeleshray/following{/other_user}","gists_url":"https://api.github.com/users/neeleshray/gists{/gist_id}","starred_url":"https://api.github.com/users/neeleshray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neeleshray/subscriptions","organizations_url":"https://api.github.com/users/neeleshray/orgs","repos_url":"https://api.github.com/users/neeleshray/repos","events_url":"https://api.github.com/users/neeleshray/events{/privacy}","received_events_url":"https://api.github.com/users/neeleshray/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-12-10T22:20:34Z","updated_at":"2018-12-11T05:14:28Z","closed_at":null,"author_association":"NONE","body":"Do all users in my directory need to have a P2 or an E5 license?  or can I only do access reviews on people who have the P2/E5 license?  \n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 3a8a3416-ca49-e148-89ec-aa004914eaa5\n* Version Independent ID: 6e6831f4-40ed-4058-5a6f-56cd3900460a\n* Content: [What are Azure AD Access Reviews?](https://docs.microsoft.com/en-us/azure/active-directory/governance/access-reviews-overview)\n* Content Source: [articles/active-directory/governance/access-reviews-overview.md](https://github.com/Microsoft/azure-docs/blob/master/articles/active-directory/governance/access-reviews-overview.md)\n* Service: **active-directory**\n* GitHub Login: @rolyon\n* Microsoft Alias: **rolyon**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/446075223","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/20365#issuecomment-446075223","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/20365","id":446075223,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjA3NTIyMw==","user":{"login":"neeleshray","id":31060822,"node_id":"MDQ6VXNlcjMxMDYwODIy","avatar_url":"https://avatars2.githubusercontent.com/u/31060822?v=4","gravatar_id":"","url":"https://api.github.com/users/neeleshray","html_url":"https://github.com/neeleshray","followers_url":"https://api.github.com/users/neeleshray/followers","following_url":"https://api.github.com/users/neeleshray/following{/other_user}","gists_url":"https://api.github.com/users/neeleshray/gists{/gist_id}","starred_url":"https://api.github.com/users/neeleshray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neeleshray/subscriptions","organizations_url":"https://api.github.com/users/neeleshray/orgs","repos_url":"https://api.github.com/users/neeleshray/repos","events_url":"https://api.github.com/users/neeleshray/events{/privacy}","received_events_url":"https://api.github.com/users/neeleshray/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T05:14:28Z","updated_at":"2018-12-11T05:14:28Z","author_association":"NONE","body":"You can assign license(s) to an user or to a group (_Group-based licensing is a public preview feature of Azure AD and is available with any paid Azure AD license plan_). You can follow this [document ](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/license-users-groups#assign-licenses-to-users-or-groups) to assign the licenses.\r\n\r\nYou can also use powershell to assign licenses to the users. Use the cmdlet [Set-AzureADUserLicense](https://docs.microsoft.com/en-us/powershell/module/azuread/set-azureaduserlicense?view=azureadps-2.0) for the same. This [blog](https://practical365.com/blog/managing-office-365-licenses-with-azure-ad-v2-powershell-module/#multiple) also elaborates on the same.\r\n\r\nTo view the licenses assigned to an individual user, you can try the following powershell sample:\r\n`$userAccountUPN=\"<user account UPN>\"\r\n$AllLicenses=(Get-MsolUser -UserPrincipalName $userAccountUPN).Licenses\r\n$licArray = @()\r\nfor($i = 0; $i -lt $AllLicenses.Count; $i++)\r\n{\r\n$licArray += \"License: \" + $AllLicenses[$i].AccountSkuId\r\n$licArray +=  $AllLicenses[$i].ServiceStatus\r\n$licArray +=  \"\"\r\n}\r\n$licArray`\r\n\r\nTo view the list of all unlicensed user accounts in your organization, run the following command:\r\n`Get-MsolUser -All -UnlicensedUsersOnly`\r\n\r\nTo view the list of all licensed user accounts in your organization, run the following command:\r\n`Get-MsolUser -All | where {$_.isLicensed -eq $true}`"}}
{"actor":{"display_login":"neeleshray"}}