Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Sep 08, 2016 @ 16:23
    Connie DeCinko
    0

    Report of page permissions?

    I know that pages are not truly owned by any one author but I need to generate a report basically showing that. I'm thinking a report that shows what pages an author has permissions to update. Is that possible?

  • Sven Geusens 169 posts 881 karma points c-trib
    Sep 13, 2016 @ 15:37
    Sven Geusens
    0

    Without going into to much detail (this is a complicated question afterall). You could create a UmbracoAuthorizedApiController that has a single get method that returns an excell sheet generated by ClosedXML.

    To get the date you could first get all entities using the Entity service Services.EntityService.GetAll(); Then get all the pages you want to audit from Services.ContentService and enumerate each Icontent you get for each Entity you recieved earlier by using Services.ContentService.GetPermissionsForEntity(Icontent)

    This will not be the fastest thing to run since the Services run straight against the database instead of the cache.

    Hope this points you in the right direction.

Please Sign in or register to post replies

Write your reply to:

Draft