Remove-PnPUserFromGroup -SharePoint Online (PnP Power Shell)


SharePoint/PnP-PowerShell has provide a great efforts to minimize code and increase productivity in SharePoint Online Development.

Recently we have to remove bulk amount of user from SharePoint Group. We decided to go with pnp power shell script to do it. As per the document Link – Remove User From Group below is the code.

Remove-PnPUserFromGroup -LoginName <String>
                        -Identity <GroupPipeBind>
                        [-Web <WebPipeBind>]
i.e.
PS:> Remove-PnPUserFromGroup -LoginName user@company.com -GroupName 'Marketing Site Members'



But above code didn't work. 

Actually we have to provide the -LoginName string like "i:0#.f|membership|user@contoso.com"
and its work.Below is the working script.
Remove-PnPUserFromGroup -LoginName "i:0#.f|membership|abdul.aziz@contoso.com" -GroupName 'Document'

 

 

Remove All Items in List using MS PnP Powershell – SharePoint Online


I am sharing the below power shell snippet to help my fellows to remove all items in a list in the SharePoint online. Often we need to delete items at once using power shell or through JS code. PNP Power shell make it more easier to complete our task. (hats off)

Copy and paste the below code, it will loop through to a list and remove the item. Change the List name as yours.

Connect-PnPOnline –Url https://*********************

$items =Get-PnPListItem -List “ListName” -PageSize 1000

foreach ($item in $items)
{
try
{
Remove-PnPListItem -List “ListName” -Identity $item.Id -Force
}
catch
{
Write-Host “error”
}

} #for each end

To install PNP Power shell check the PnP PowerShell overview.

#Sharing is caring

Skype for Business integration in Yammer


Yammer is very cool social media plugin within the office. It makes more strong bonding among departments. We found it very useful tool in our organization. With the new Roadmap plan, MS has enhanced its features with Some basic options.

Beginning July 2017, Yammer users with a Skype for Business subscription will start seeing the Skype for the Business icon on the Office 365 navigation bar in Yammer.

This message is associated with Office 365 Roadmap ID 14805.

On the navigation bar, click (or tap) the Skype for Business icon ( Skype for Business icon on the Office 365 navigation bar ).

Choose the Skype for a Business task that you want to do.

 

Search for people in your organization

  1. Click (or tap) the magnifying glass ( Search for contacts ).
  2. In the search box, type the name of who you want to contact.
  3. Select the person from the contacts list.
  4. To add the person to your contacts list, click Add To Contacts.

 

View your contacts list

  1. Click (or tap) the address book icon ( View your contacts list ).
  2. Choose a contact from the list or search for someone else.

Start a conversation

  1. Click (or tap) the plus sign ( Start a conversation ).
  2. In the conversation window, type your message.
How does it affect me?
Yammer users with Skype for Business subscription can now launch and perform some basic Skype for Business tasks right from their Office 365 navigation bar in Yammer.
This feature will initially be available for first release customers and will start rolling out to a subset of production customers starting mid-July, with the majority of customers receiving this update by the end of July.
What do I need to do to prepare for this change?
This feature will be on by default. While no action is required,

SharePoint Online Establishing a new dedicated page for Site usage – 30 June 17 Update


Site usage is like a dashboard to of any site in the SP Online. How many Visit, How Many new items and all highlighted items, documents show to admin. It is very helpful for the site admin to draw a clear picture for the content and statistics.

Previously these reports show on the site content page, in the modern site in SharePoint and  a site owner would see site usage information at the top of the Site contents page.

Site usage on site content page
Site usage on site content page

Now MS has established a dedicated page for the site usage. They have moved this analytics portion to a dedicated page. The Site contents page maintains focus on access and management of content (lists, libraries, pages, etc.), and provides insights into how your site is being used via this new Site usage page.

Site Usage option to show on dedicated page
Site Usage option to show on dedicated page

 

his message is associated with Office 365 Roadmap ID 16048.

It ‘ll begin gradually rolling this out in the following days (June 29 17), and the rollout will be completed by the end of July.

What do I need to do to prepare for this change?
There is nothing you need to do to prepare this change. Please click Additional Information to learn more.