Getting Access Rights of all users across Tridion using Powershell

Objective:

This exercise is intended to explore the Tridion Core Service Powershell Module and retrieve various access rights users have on each publication.

The execution of this powershell script can show the access rights in a matrix on screen and also write down to a csv on file system

Getting Ready:

Refer this blog to Setup and Starting with Tridion Core Service powershell module and execute below powershell script:

$publications = Get-TridionPublications -ExpandProperties

$acls = @();

foreach($p in $publications)
 {

$groupNames = foreach ($g in $p.AccessControlList.AccessControlEntries)
 {

$rightsInfo = New-Object psobject

$rightsInfo | Add-Member -MemberType NoteProperty -Name "GroupName" -Value $g.Trustee.Title

$rightsInfo | Add-Member -MemberType NoteProperty -Name "ACL" -Value $g.AllowedRights

$rightsInfo

}

$entry = New-Object psObject

$entry | Add-Member -MemberType NoteProperty -Name "PubName" -Value $p.Title

$entry | Add-Member -MemberType NoteProperty -Name "Groups" -Value $groupNames

Write-Output $entry

$acls += $entry
 }

$acls | Select-Object PubName, Groups -ExpandProperty Groups | Select-Object PubName, GroupName, ACL | ogv

You can get more details about the logic on Peter Kjaer’s GitHub

The below screen capture shows this in action:

GetACLc

 

Director at Content Bloom India having 15+ years of experience in Software Development Life Cycle using AGILE, Iterative and RUP approaches. Experience in following: - CMS packages: SDL Tridion, Adobe Experience Manager (AEM), Sitecore, Umbraco, Kentico, and Alfresco - Search Engines: SOLR, AWS Cloud Search, Elastic Search - .NET Technologies: .NET & .NET CE Framework, ASP.NET, ASP.NET MVC, WCF, WinForms - Mobile Development: Android Native App, Windows Mobile App - Database: MS-SQL Server, MySQL - Program Management: JIRA, MS-Project, Trello - Design Tools: MS-Visio, StarUML - Infrastructure: Linux, Windows Server, AWS Have decent knowledge about Core Java, Spring MVC Instrumental in Application Architecture, Designing (HLD & LLD), Coding and deployment .NET applications (Web, Desktop, Mobile). Experience in following domain: - Digital Media & eCommerce - Travel & Hospitality - Aviation Industry - Education - Insurance - Automation - Automobile - Railways Education: Bachelor Degree in Computer Engineering and Post Graduate Diploma in Business Administration with specialization in Marketing

Tagged with: , ,
Posted in SDL Tridion

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: