May 04 2023 06:16 PM - edited May 04 2023 08:20 PM
Hi,
To manage requests for new teams sites, we use the Request a Team app. The logic app used in this flow builds new Teams sites from scratch using a template. However, the 'New and existing guests' setting for external sharing is the default. To ensure that any requests for new sites made through the app are established with "no external sharing allowed," we need to edit the flow to change this to "Only people in the organization." If necessary, we can then manually update the sharing settings. Can you help me with this, please?
@Matt_majedi and @ganeshsanap I read your thread similar to this. Update Site Sharing Capability with Flow > How to use "admin.sp.com/_api/Tenant/Sites/Update" - Micr.... Can we apply the same theory here?
May 10 2023 08:07 PM
here are the steps to edit the flow and change the external sharing settings for new Teams sites created using the Request a Team app:
1. Open the Request a Team flow in Power Automate.
2. Locate the "Create a new team" action in the flow.
3. Click on the action to expand it and view the details.
4. Look for the "New and existing guests" setting under the "External sharing settings" section.
5. Click on the dropdown menu and select "Only people in your organization."
6. Save the changes to the flow.
7. Test the flow by making a request for a new team site and verifying that the external sharing settings are set to "Only people in your organization."
Note that this change will only affect new team sites created through the Request a Team app going forward. If you need to update the external sharing settings for existing team sites, you will need to do so manually.
If I have answered your question, please mark your post as Solved If you like my response, please give it a like |
May 14 2023 07:32 PM
Hi @Deleted ,
Hi @ShijurajJayaraj,
Thanks for your reply. However, the flow does not contain a section where we can modify the external sharing settings. In the flow, the Teams site is created based on a template and there is no option in the flow to modify the template settings. In Teams admin centre also, we couldn't find a default template that is used to create Teams site. This is what makes it more challenging to know where to make the changes.
May 15 2023 10:32 AM
SolutionIn a Logic App, you can disable external sharing for a Microsoft Teams by utilizing the "Send an HTTP request to SharePoint" action. This action allows you to interact with the SharePoint site associated with the Microsoft Teams team and update its settings.
Here's an example of how you can disable external sharing for a Microsoft Teams team in a Logic App:
1. Add the "Send an HTTP request to SharePoint" action to your Logic App.
2. Set the following details in the action:
- Site Address: Provide the SharePoint site address associated with the Microsoft Teams team. You can use the expression `triggerBody()?['team']['webUrl']` to retrieve the site address dynamically from the Teams trigger.
- Method: Select "PATCH".
- Uri: Set the URI as `/_api/web/`.
- Headers:
- Key: Content-Type
Value: application/json;odata=verbose
- Body:
{
"__metadata": {
"type": "SP.Web"
},
"SharingCapability": 1
}
3. Save the Logic App and run it to disable external sharing for the Microsoft Teams team's associated SharePoint site.
The "SharingCapability" property is set to `1` in the request body to disable external sharing. You can modify the value as per your specific requirements.
Make sure that the Logic App has the necessary permissions to access and update SharePoint sites. You may need to configure the appropriate connection and provide the required access token or credentials for authentication.
Note that disabling external sharing for a Microsoft Teams team's SharePoint site will affect the sharing settings for associated files, documents, and other content within that site.
If I have answered your question, please mark your post as Solved If you like my response, please give it a like |
May 24 2023 06:27 PM
Thanks @Deleted
May 15 2023 10:32 AM
SolutionIn a Logic App, you can disable external sharing for a Microsoft Teams by utilizing the "Send an HTTP request to SharePoint" action. This action allows you to interact with the SharePoint site associated with the Microsoft Teams team and update its settings.
Here's an example of how you can disable external sharing for a Microsoft Teams team in a Logic App:
1. Add the "Send an HTTP request to SharePoint" action to your Logic App.
2. Set the following details in the action:
- Site Address: Provide the SharePoint site address associated with the Microsoft Teams team. You can use the expression `triggerBody()?['team']['webUrl']` to retrieve the site address dynamically from the Teams trigger.
- Method: Select "PATCH".
- Uri: Set the URI as `/_api/web/`.
- Headers:
- Key: Content-Type
Value: application/json;odata=verbose
- Body:
{
"__metadata": {
"type": "SP.Web"
},
"SharingCapability": 1
}
3. Save the Logic App and run it to disable external sharing for the Microsoft Teams team's associated SharePoint site.
The "SharingCapability" property is set to `1` in the request body to disable external sharing. You can modify the value as per your specific requirements.
Make sure that the Logic App has the necessary permissions to access and update SharePoint sites. You may need to configure the appropriate connection and provide the required access token or credentials for authentication.
Note that disabling external sharing for a Microsoft Teams team's SharePoint site will affect the sharing settings for associated files, documents, and other content within that site.
If I have answered your question, please mark your post as Solved If you like my response, please give it a like |