https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/manage-apps\/assign-user-or-group-access-portal#assign-users-or-groups-to-an-app-via-powershell<\/a><\/p>\n\n\n\n
\n\n\n\nWhen user assignment is required…<\/h2>\n\n\n\n
Once user assignment is required, then only those users will be able to access the application. Users who do not have access will get the following similar error message…<\/p>\n\n\n\n
AADSTS50105: The signed in user ‘{EmailHidden}’ is not assigned to a role for the application ‘{app-id}'({app-display-name}).<\/p>\n\n\n\n
\n\n\n\nOther Tips\u2026<\/h2>\n\n\n\n
You can also do this for other resources such as an API. Just follow the steps above applying them to the resource’s Enterprise app. Be careful and don’t do this for Microsoft first-party apps as you might break apps like Outlook, Power BI, SharePoint, ect\u2026<\/p>\n\n\n\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
We get this kind of question all the time. It comes in many variations and forms like\u2026 “I only want to consent for some users to access the app.” “I only want my service account to access this app” Before we get started\u2026 First and foremost, only consenting for allowed users is not the solution. This is not the purpose for consent. Consent is to inform a user or admin…<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,210],"tags":[17,36],"class_list":["post-7113","post","type-post","status-publish","format-standard","hentry","category-app-registration","category-azure-ad","category-enterprise-application","tag-aad","tag-authentication"],"_links":{"self":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts\/7113"}],"collection":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/comments?post=7113"}],"version-history":[{"count":11,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts\/7113\/revisions"}],"predecessor-version":[{"id":7132,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/posts\/7113\/revisions\/7132"}],"wp:attachment":[{"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/media?parent=7113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/categories?post=7113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.aaddevsup.xyz\/wp-json\/wp\/v2\/tags?post=7113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}