Style Library has permission issues SharePoint Online - sharepoint

I am site administrator but when I am uploading or creating something under style library, it is giving error permission denied. The permission on library is inherited from site while I am also in owner group. What can be the reason?

#Ali Murtaza,
This should be caused by NoScript setting of Modern Sites. Please try below cmdlets to fix it:
Connect-SPOService -Url https://<tenantname>-admin.sharepoint.com
Set-SPOSite -Identity https://<SiteUrl> -DenyAddAndCustomizePages 0
more about SharePoint Online Management shell here and download the SharePoint Online Management Shell here.
BR

Related

Server Error: Access Denied in SharePoint Designer 2013

I am trying to add custom pages by using using SharePoint Designer 2013, but it throws Server Error: Access Denied when I try to add a new aspx page or edit aspx page.
I am site owner and have SharePoint admin access, still I couldn't figure out what went wrong and struggling with this issue for a long time.
When I check permissions with my user name.
Deny | Add and Customize Pages | Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Microsoft SharePoint Foundation-compatible editor.
I have tried with below command in Sharepoint management shell, not helpful.
Set-SPOSite -Identity https://.sharepoint.com -DenyAddAndCustomizePages $false
Have you resolved this issue?
If not, please check which site template you used for your site, and check the user's permissions on the pages library that is used to store the new pages or existing pages.
Then check the best practices about how to install SharePoint Designer 2013 for SharePoint Online, make sure you have followed it to install the CUs.
After that, please try again, compare the result.

Access required error while Saving SharePoint site as template

We are getting
"Sorry, you don't have access."
error while trying to save a SharePoint site as template in Microsoft Office 365.
We tried setting "Allow users to run custom script on personal site" and "Allow users to run custom script on self-service created sites" options from SharePoint Online Admin Center as mentioned in the article: https://www.sharepointdiary.com/2017/06/fix-sorry-you-dont-have-access-error-on-save-site-as-template.html
Also we waited for more than 24 hours now to take the effect. But we are still getting the same error.
Is there anything else we need to do?
Thank you!
You could try to run the powershell command to allow custom script on this site:
Set-SPOSite https://tenant.sharepoint.com/sites/yoursite -DenyAddAndCustomizePages 0

‎Access Denied, Due to organizational policies, you can't access this resource from this untrusted device

I can't view my SharePoint page and SharePoint admin center. I think I was changing some policies at sharepoint admin center, but I can't remember which one I changed. Other admin centers like OneDrive opens without any issue. Even as a admin I can't open SharePoint Admin Center. It says Access Denied, Due to organizational policies, you can't access this resource from this untrusted device. I've cleared my browser's cache and switched different browser but nothing works.
After contacting Microsoft support and no response from them, I've tried solving this on my own. Here is how I solved it. Install the SharePoint Powershell from here
After installing run these steps on SharePoint Powershell(Admin) to remove access blocks,
Connect-SPOService -Url https://contoso-admin.sharepoint.com
Set-SPOTenant -IPAddressEnforcement 1
Set-SPOTenant -IPAddressAllowList (Your current IP address),
after running these command you will be able to access sharepoint without any issue. Now open SharePoint Admin center and Policies--> Access Control--> Unmanaged Devices and select Allow full access and save.
Or instead Go in Azure AD if you have And into security option check for conditional Access policies if there is any check if that policy is blocking your access to that website.

Inventory of al SPOnline sites without access to SP Administrator

I am the SPOnline Developer for my company. I do not have access to SP Admin console. I have been requested to produce a set of all SP sites and subsides, but I don't believe there is anyway to do this without being an administrator. I believe I could get this info if using PowerShell SPOnline if I had access to the Administrator, or someone with Admin privileges
at my company could do this.
Anyway to do this without admin privileges?
I would suggest that you download and install the PnP PowerShell. It is wrapper on the OOTB SharePoint powershell but with much easier commandlets and ease of use.
After you download and install the PnP PowerShell, you can run the below commands:
Connect-PnPOnline -Url "<your-site-url>"
Get-PnPSiteSearchQueryResults -Query "(contentclass:'STS_Site') (contentclass:'STS_Web')" -All
After you run the command, Connect-PnPOnline -Url "<your-site-url>", it will open a window asking for credentials. If you provide your credentials, it will work in that context. If you provide admin credentials, it will work in admin context.
Get-PnPSiteSearchQueryResults submits a search query which is the fastest and most efficient way to get list of all the sites and subsites.
Do note, this will give the results of all the sites and subsites to which only you have access. If you run in the context of admin, then, if and only if the admin is added to that particular site will he have access to it.
References -
Dowload this file - SharePointPnPPowerShellOnline.msi for SharePoint online.
Download links (get the latest Nov 2017 or higher) - PnP-PowerShell
Documentation - Get-PnPSiteSearchQueryResults

SharePoint UserGroup Web Service - Retrieve users (nested sub-groups)

We have a need to retreive all users if we know the group name in a SharePoint. We are planning to use the following MOSS out of the web service to retrieve the users from a group. If the group has nested sub groups, do you know how this web service behaves?
Also, does the user accessing the web service has to be a super user having permission to all SharePoint sites? Is this web service based on a site or a document library?
/_vti_bin/usergroup.asmx?op=GetUserCollectionFromGroup
Thanks.
In MOSS you cannot have SharePoint group inside another SharePoint group. You can only have AD groups or users inside a SharePoint group.
You only need to have Full Read permissions to the web application to retrieve this information. You can set this permission by using the stsadm utility.
stsadm.exe -o addpermissionpolicy -url http://myFQUrl -userlogin "domain\user" -permissionlevel "Full Read"
These tutorials may help:
http://blogs.sharepointace.com/post/Another-way-to-retrieve-SharePoint-List-Data-Use-built-in-functionality!.aspx
http://vspug.com/tonstegeman/2007/10/03/export-user-information-to-excel-using-quot-export-to-spreadsheet-quot-in-sharepoint-2007/

Resources