SharePoint/OneDrive Enable Custom Scripts

Richard Long 341 Reputation points
2022-09-06T18:29:37.737+00:00

We are implementing a backup solution to backup MS 365 services including SharePoint and OneDrive. It requires that we enable Custom Scripts so that can change the Export Mode. There are Security considerations regarding custom scripts. I just want to confirm that it's possible to lock down who can actually use custom scripts once they're enabled, and also audit the use of them.

Thanks

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,601 Reputation points
    2022-09-07T07:23:50.083+00:00

    Hi @Richard Long ,

    Global administrators, security administrators, or SharePoint administrators can allow or block custom scripting capabilities for the entire organization or for specific site collections. Any user who has "Add and Customize Pages" permission (part of the Design and Full Control permission levels) to any page or document library can insert code that can potentially have a powerful effect on all users and resources in the organization. Only site-collection owners can run audit log reports. SharePoint administrators can directly download data from the Microsoft 365 Management Activity API.

    Reference: Security considerations of allowing custom script
    Configure audit data for a site collection


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.