Building a SharePoint Intranet for Real-World IT Demands

Listen to this Post

You Should Know:

SharePoint is a powerful tool for managing intranets, and its practical application can solve numerous IT infrastructure challenges. Below are some key steps, commands, and practices to help you manage SharePoint effectively:

1. Enabling External Access in SharePoint:

  • Use the SharePoint Admin Center to enable external sharing.
  • Command: `Set-SPOSite -Identity -SharingCapability ExternalUserSharingOnly`

2. Restricting Access to Specific Folders:

  • Navigate to the folder in SharePoint, click on the three dots, and select “Manage access.”
  • Use PowerShell to modify permissions:
    $folder = Get-PnPFolder -Url "/sites/<SiteName>/Shared Documents/<FolderName>"
    Set-PnPFolderPermission -List "Documents" -Identity $folder -User "<UserEmail>" -AddRole "Read"
    

3. Granting Access to External Partners:

  • Use the SharePoint Admin Center to invite external users.
  • Command: `Add-SPOExternalUser -InvitationManager -Invitee -Site `

4. Auditing and Tracking Folder Access:

  • Enable auditing in SharePoint:
    Set-SPOSiteAuditSettings -Identity <SiteURL> -AuditLogRetentionPeriod 90 -EnableAuditLog $true
    
  • Use the Audit Log Reports to track folder access and changes.

5. Ensuring Internal Access Only:

  • Configure Conditional Access Policies in Azure AD to restrict access to company users only.
  • Command: `New-AzureADPolicy -Definition @(‘{“ConditionalAccess”:{“Applications”:[{“ApplicationId”:”“}],”Users”:{“IncludeUsers”:[““]}}}’) -DisplayName “Restrict SharePoint Access” -Type “ConditionalAccess”`

What Undercode Say:

SharePoint is an essential tool for modern IT infrastructure, enabling seamless collaboration and secure data management. By leveraging PowerShell commands and SharePoint Admin Center features, you can efficiently manage access, audit activities, and ensure compliance. Whether it’s enabling external access, restricting folder permissions, or tracking user activities, SharePoint offers robust solutions for real-world IT demands. For further reading, check out the official SharePoint documentation.

Related Commands and Practices:

  • Linux Command for Monitoring Network Access:
    sudo netstat -tuln | grep :80
    
  • Windows Command for Checking Active Connections:
    netstat -an | find "ESTABLISHED"
    
  • PowerShell Command for Exporting SharePoint Audit Logs:
    Get-SPOSiteAuditLog -Identity <SiteURL> -StartDate (Get-Date).AddDays(-30) -EndDate (Get-Date) | Export-Csv -Path "C:\AuditLogs.csv"
    

By mastering these commands and practices, you can enhance your SharePoint management skills and address common IT challenges effectively.

References:

Reported By: Wanderson Silva – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image