Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Manifest not being applied until button in portal is clicked #6989

Closed
bhicks329 opened this issue Aug 8, 2018 · 3 comments
Closed

Manifest not being applied until button in portal is clicked #6989

bhicks329 opened this issue Aug 8, 2018 · 3 comments

Comments

@bhicks329
Copy link

bhicks329 commented Aug 8, 2018

When trying to programmatically create an ad application for use with Terraform, the required-access does not appear to be applied to the Principle until the "Grant Permissions" button in the portal is clicked.

To reproduce:

az ad app create --display-name testapp1 --required-resource-accesses @manifest.json --identifier-uris http://testapp1

manifest.json contains:

[
{
"resourceAppId": "00000002-0000-0000-c000-000000000000",
"resourceAccess": [
{
"id": "cba73afc-7f69-4d86-8450-4978e04ecd1a",
"type": "Scope"
},
{
"id": "311a71cc-e848-46a1-bdf8-97ff7156d8e6",
"type": "Scope"
}
]
}
]

The application is expected to be given the following permissions:

  • Read and write all applications
  • # and read user profile

The manifest in the portal appears to be correct and the permissions blade shows the correctly ticked options, however we still do not have the required access.

Without changing anything, we can click the "Grant Permissions" button and access then works.

I have done this with another manifest without the "Requires Admin" option and that appears to work. If this is the case, is there a way to force this through on the CLI without heading to the Portal?

I have searched for documentation as to whether this is something else I need to be doing, but I haven't found anything, leading me to believe this may be a bug.

@yugangw-msft
Copy link
Contributor

yugangw-msft commented Aug 8, 2018

PR #6975 should handle this

@yugangw-msft yugangw-msft added the Graph az ad label Aug 8, 2018
@bhicks329
Copy link
Author

So I'm not going mad then 👍

Cheers

@yugangw-msft
Copy link
Contributor

Addressed through #7611

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants