LINQ to extract object permission from SSAS

Another great example of LINQ to help us in day to day problems, Marco Russo made a LINQ script to extract object permission from SSAS into XML by using LINQ and XML Literals in Visual Basic.