Hot answers tagged

3

As mentioned, Here When you delete an Office 365 Group, the associated SharePoint site is sent to a recycle bin. You can see the list of Deleted Sites (aka sites in recycle bin) by going to the newer/preview SharePoint Admin Center. In order to be able to recreate a new SharePoint site with the same name, you used before you need to delete the old site from ...


2

If you want to achieve this using SSOM, I will recommend you trying the solutions given in below links: How to check if user exists in a particular SharePoint group or not programatically Checking if a SPUser is in an SPGroup Code for reference: using System; using System.Linq; using Microsoft.SharePoint; namespace ConsoleApplication { class Program ...


2

As we have discussed in the comments, the Audi group is configured to only let current members see who are the members. If the group is configured in that way then other users will receive permission errors while trying to select the values in the list.


2

You cannot do this OOTB. But as an alternative you can edit the form using PowerApps (requires permissions). Initially the form looks like below: Now, edit the form using Customize with PowerApps button. The PowerApps screen will open. Follow the below steps (steps are mapped to the image below): Remove the existing drop-down (combo-box) of your people ...


2

The below PowerShell command retrieves all the SharePoint Groups from the SharePoint site and its users with users count for the group. Get-PnPGroup PnP PowerShell cmdlet gets the SharePoint Groups from the SharePoint site collection. PS:> $cred = Get-Credential PS:> Connect-PnPOnline -Url https://<tenant>.sharepoint.com/sites/dev -Credential ...


2

I do not think so. Site collection admin should be Azure AD identity (group or user). It exists at tenant level. SharePoint group exists within SharePoint site. Instead you should be able to create an AAD Security Group (login to https://portal.azure.com/, then Azure Active Directory, Groups, + New Group), wait ~10 minute, then you can manage group ...


2

The "List group members" action can only get Office 365 groups. It does not allow us to get membership of SharePoint Groups. To get sharepoint groups, you can use the rest API call. Refer this.


1

There is no way to make a SharePoint Group as site collection administrator. As a workaround, you could make an offcie 365 group as site collection administrator. Create a Office 365 group and add users to it. Then go to SharePoint admini center, choose the site and click permissions. Add the Office group as admin.


1

Unfortunately for Sharepoint groups no, and this has been a long standing caveat with Site Collection Administrators - they can only be defined users. You can use Azure AD / Office 365 Security Groups though. This link to previous question explains this well this very well.


1

You could get all the site users with the below rest api. /_api/web/siteusers


1

Here are the steps you can try: Declare an array and initialize it with group ids like [2, 3, 4, 5] Declare a string variable to store all the emails (email1;email2;) Declare another string variable to store current email from JSON parse action Add "Apply to each" action to process group id array Within "Apply to each", add "Send an ...


1

It seems to have something to do with Access Control for Unmanaged Devices, which is configured to restrict end users’ actions (Download, Print, and Sync commands) in Office apps. Do you have sensitivity labels set in your tenant, or see Confidential labels in this site? I haven’t been able to enable this permission level in my tenant, possibly due to ...


1

Quoting the official document: Membership to the site collection owner and member groups are kept in sync with the membership of the private channel within Teams. Any changes to the membership of Owner or Member groups in SharePoint Online will be reverted to private channel membership within four hours automatically. So technically, you can sync a ...


1

Try using your flow like below. This works for me: OR simply like: Group Settings: Notable Points: I have used endpoint like: /_api/web/sitegroups/removebyid('<group-id>'). Group ID is enclosed by single quote ('). In my case I am the owner for both group and flow.


1

You can ignore the flow output in this case, all you have to do is to remove the Headers part from your Flow action, everything else looks OK. All you need is the POST method to the _api/web/sitegroups/removebyid([id]) Note the headers accepts JSON string, but you're providing it as a JS object. Removing it altogether will make it work. As long as you're ...


1

Run the PowerShell with SharePoint Online Management Shell. Get started with SharePoint Online Management Shell for your reference: https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps Similar issue post for your reference: https://techcommunity.microsoft.com/t5/sharepoint/set-sposite-lt-...


1

Update your management shell to a current version; I would strongly suggest using the PowerShell Gallery version for easy updating in the future, if you're currently using the MSI. You will want to uninstall the MSI version prior to installing the PoSh gallery version.


1

If the REST API is acceptable, you can get the groups for a user by using their user name using the following query: https://server/sites/site/_api/web/siteusers?$filter=Title eq 'The User Name'&$select=Title,Id,Groups/Title,Groups/Id&$expand=Groups Obviously you can choose to return more information about the user or the groups by including more ...


1

Your request should be using GetByName instead of GetByTitle So your request should be: https://mycompany.sharepoint.com/sites/testsite2/_api/web/sitegroups/getbyname('TestGroup')/users/getbyemail('john.theuser@mycompany.com') Reference: https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn531432%28v%3doffice.15%...


1

Currently there is No way to use target Audience in SharePoint Modern List view. Workaround: Go to your SharePoint list. Click on Return to classic SharePoint (You can find it below left side navigation - bottom left corner of the page). Click on Settings (Gear icon) --> Edit page. Then Edit Web Part. In web part properties panel, expand Advanced section. ...


1

There is no OOTB action in Microsoft flow/ Power Automate to check if the SharePoint Group is present or not. So, you need to use Send an HTTP Request to SharePoint action with below URL to check if SharePoint Group is exists or not. /_api/web/sitegroups?$select=Title&$filter=Title eq 'Site Owners' Expression in "Set Variable" action: body('...


1

You can use Get-PnPGroupMembers like below: Get-PnPGroupMembers -Identity 'Marketing Site Members' Where -Identity is the title of the group. Additionally you can also use Get-PnPGroup command like: $group = Get-PnPGroup -Identity 'Marketing Site Members' -Includes Users $group.Users Reference: Get-PnPGroupMembers. Get-PnPGroup. Get Group Users From ...


1

Try using below SharePoint REST endpoint to get the group Members from specific group: Considering name of your group is BM Members, _api/Web/SiteGroups/GetByName('BM Members')/users To get the specific property for user, you can add $select query as given below: _api/Web/SiteGroups/GetByName('BM Members')/users?$select=Email,Id Check my full answer ...


1

I ended up with: Create a SharePoint group with no permissions to the site. Add AD group to this SharePoint group Assign this SharePoint group as an Owner of the other SharePoint group


Only top voted, non community-wiki answers of a minimum length are eligible