Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Site collection admins are not allowed to deploy #8

Closed
AshikPaul42 opened this issue Jun 30, 2020 · 3 comments
Closed

Site collection admins are not allowed to deploy #8

AshikPaul42 opened this issue Jun 30, 2020 · 3 comments
Labels
question Further information is requested

Comments

@AshikPaul42
Copy link

I have some site collections that have site collection level app catalog(mysite/appcatalog not apps/appcatalog) and I want to deploy using pnp action, but Office 365 CLI only allows tenant admins to deploy.

Please allow site collection admins to deploy to the site that he owns.

@VelinGeorgiev
Copy link
Contributor

VelinGeorgiev commented Jun 30, 2020

@AshikPaul42, have you tried to deploy to a site collection app catalog when you are logged in with your site collection admin account? Can you share the error you are getting?

@VelinGeorgiev VelinGeorgiev added the question Further information is requested label Jun 30, 2020
@AshikPaul42
Copy link
Author

Thank you @VelinGeorgiev for the quick response.

I have attached a screenshot of the issue. The comment says only tenant admin can log in or only if consent is issued.

My situation is I have no way to contact the admin team and grant me consent or access to the tenant admin portal.
So I found another way to do the same by using a PowerShell module.

Very useful action but I hope it will allow non-tenant admins to deploy an app to sitecollection level scope sites.

Great work. Thank you 😍

image

@VelinGeorgiev
Copy link
Contributor

VelinGeorgiev commented Jul 7, 2020

@AshikPaul42 thank you very much for your response.

Yes, you are correct. It is not possible to login to the CLI without approved Azure AD app. Currently PowerShell can workaround that using old Azure Access Control (ACS) Authentication with AppOnlyAccessToken.

Unfortunately, the Azure Access Control (ACS) is considered by the CLI maintainers as legacy and we do not expect Microsoft to support it in long term so we have not implemented it in the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants