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

Granting user permission #5

Open
Ochechule opened this issue Jun 18, 2020 · 10 comments
Open

Granting user permission #5

Ochechule opened this issue Jun 18, 2020 · 10 comments
Assignees
Labels
bug Something isn't working needs investigation

Comments

@Ochechule
Copy link

Hi,
it seems that grating user permissions for site design doesn't work. I can see or remove permission granted using PowerShell (Grant-SPOSiteDesignRights), but when I try to add new user, he doesn't get recognised and just typing user name doesn't work.

image

Tested in two independent tenants. App version 2.0.1.0.

@ypcode
Copy link
Collaborator

ypcode commented Jun 20, 2020

Hi @Ochechule

Thank you for reporting, would it be possible for you to share the content of you console log and network trace (specifically the calls to Microsoft Graph) ?

I’ll have a look and try to find out the reasons and will eventually come up with some fixes

Regards,
Yannick

@Ochechule
Copy link
Author

Ochechule commented Jun 21, 2020 via email

@sparkitect
Copy link

sparkitect commented Jun 21, 2020 via email

@Ochechule
Copy link
Author

Ochechule commented Jun 21, 2020 via email

@ypcode
Copy link
Collaborator

ypcode commented Jun 21, 2020

@Ochechule

Regarding the logs I see no attachment in your reply, (if you attached it responding via e-mail, I don't think GitHub supports it... Could you please share it via other means (e.g. OneDrive link) ?)

Each application to Microsoft Graph has its own set of permissions, in the case of Site Designs Studio, the application that needs to be granted the permissions to MS Graph is SharePoint Online principal.
If you installed with the setup.ps1 script and did not see any error, the required permissions should have been granted.
To make sure of it you can go to

https://yourtenant-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement
(Replace yourtenant accordingly)

In the Approved requests group, you should see
image

@Ochechule
Copy link
Author

Ochechule commented Jun 21, 2020 via email

@ypcode
Copy link
Collaborator

ypcode commented Jul 6, 2020

Hi @Ochechule , can I then close this issue ?

@Ochechule
Copy link
Author

Hi @ypcode, yes, you can.
My problem was that I didn't know it's necessary to approve API access through https://tenant-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement
Thanks.

@ypcode
Copy link
Collaborator

ypcode commented Jul 6, 2020

The setup script should indeed automatically approve the API permissions...
I will leave this open until I have a chance to double-check it :)

@ypcode ypcode added bug Something isn't working needs investigation labels Jul 6, 2020
@ypcode ypcode self-assigned this Jul 6, 2020
@Ochechule
Copy link
Author

I installed it in 3 tenants. In one I was global admin, in two just SharePoint admin. We had to approve permissions in all three tenants manually. Not a big deal when you know what to do :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs investigation
Projects
None yet
Development

No branches or pull requests

3 participants