Skip to content
English
  • There are no suggestions because the search field is empty.

Custom Feature Example: Add a Custom SharePoint Group to a Site

In this article, learn how to configure custom SharePoint site permissions using your own PNP package.

    Note: These articles are intended to showcase examples of Orchestry's Custom Feature option.  From a product support standpoint, we do not assist in creating or debugging Custom Features.

    Getting Started

    Before creating a custom feature, definitely check out our more introductory articles on:

    Feature Proposal

    Have you wondered if you can provision some custom security options to your SharePoint site via Orchestry? Currently we do not provision broken inheritance models from the source SharePoint site to the destination, however, you can use PnP provisioning and create an Orchestry Feature to customize the SP Site Permissions instead.

    Here are two examples, one using a hardcoded (Static) Permission Group Name, and another with a name like {groupsitetitle} Designers.

    Testing the Feature

    Sometimes it can be much easier to do away with the entire PnP package I did away with the entire PnP Package file. I don't believe it's required for what we are trying to do. Instead, I simply used the extracted XML file under <extract>/Files.

    Likely you will want to update the XML to simplify it as much as possible and re-save it, here's an example:

     

    2024-05-09-17


    Next, upload only the XML into the Orchestry Template Files. Here are the two of ours:


    2024-05-09-18 

    One useful trick to test your XML file, before you deploy it as a feature, is to use the green 'beaker' icon to launch as a test against an existing site in the environment. This is a much faster way to test the file is working.


    2024-05-09-19


    Next, connect each of these to a feature to be able to attach them to a Template:


    2024-05-09-20

     

    Here is an example of a request with the feature added:


    2024-05-09-21

     

    This is the resulting Team Site with the custom Group (and members) created:


    2024-05-09-16