Copied to clipboard

Flag this post as spam?

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


  • Robert 3 posts 23 karma points
    Apr 10, 2013 @ 20:38
    Robert
    0

    User Permissions - Restricting User Access to content by "Created By"

    First time poster! Tried searching from the main search but was not yielding any results..

     

    Hello. So our site has multiple 'writers' who contribute.

    I have the permissions set up so that they can ONLY see the articles node of our site.

    However, Is there anyway to restrict them, so that they can only see articles that have been submitted ("created by") them?

    I'm familiar w/ this type of user role from wordpress - but am not sure how to get the same results with Umbraco.

    Thank you for any help!

  • gary 385 posts 916 karma points
    Apr 10, 2013 @ 21:24
    gary
    0

    Hi Robert

    Welcome, Bem Vindo.

    There are 2 possibilities CreatorId and CreatorName.

    Guessing that you get the current user and match it to see just what they have created.

    Just a tip - with so many new versions of Umbraco, it is good to state the version you are using and whether it is webforms or razor, it allows anyone answering to perhaps be a little more specific.

    If you have some code that returns what you have at the moment, but want to restrict, post it here and sure someone will help.

    Best regards

    Gary

    Tip - if using WebMatrix or VS, @Model.Content.   will give you Intellisense to see available properties (ok, I use V6 mvc, but should work similar in 4.7+, but that is part of the issue with knowing which version you are currently using.

    Hope it helps a bit, 

    Gary

  • Robert 3 posts 23 karma points
    Apr 10, 2013 @ 21:28
    Robert
    0

    Thanks Gary.

    I'm not a developer - rather a content manager. So was hoping for a solution somewhere within the settings/UI of Umbraco.

    Here's what's in my about:

    umbraco v 4.11.3 (Assembly version: 1.0.4776.28990)

     

  • gary 385 posts 916 karma points
    Apr 10, 2013 @ 21:53
    gary
    0

    Hi Robert

    Apologies for that, it just seemed like a developer question.

    Will try to be brief - if you have a section node, (Content and Media you will definitely have), called Users, then it is possible for you to manage user permissions, if you do not, then your developer could allow you access to it, but it does give lots of power, ie you can delete users etc, so they would need to feel confident that the person with this permission is "responsible". 

    In this you can grant access, to a certain node, however that will only be useful to you if each creator creates on a single node, then you can set on the content channel tab, a filter. This can be filtered by document type, field property etc. What is not available "out of the box" is creatorName or creator Id.

    So you would need to ask your developer to add the field to each created document, so that CreatorId is available in this section, then it is just a case of clicking to set the permission for that user to only view that creatorId.

    Without going through the construction of the site, it would be better for you to ask your developer if you can control the permissions for each user, by having access to the User Section, then to be able to set this field in that section.

    Another apology, it must sound like Im talking to a child - sorry, just trying to be simple and clear to help your conversation about something that you probably cannot see. Oh, maybe Im just making it worse? 

    Seriously, I am trying to give the best advice I can.

    If you have any further questions, please post again, will try my best to answer.

    Regards

    Gary

  • Robert 3 posts 23 karma points
    Apr 10, 2013 @ 22:18
    Robert
    0

    Hi Gary:

    It's only slightly confusing - because I am new to Umbraco terminology. I typically can nod my head and follow along in technical convos :)

    I do have full admin access to the site. I set up all of the user accounts for the writers.

    My articles, however, are all set to be in Content-->Home-->Articles

    They are not divided up by author.

    Here is what I can see for a User.

     

     

  • gary 385 posts 916 karma points
    Apr 10, 2013 @ 23:27
    gary
    0

    Hi Robert

    Hmm, going to own up here to making a mistake - the Content Channel tab, allows content editors to upload atricles to Umbraco via Windows LiveWriter or Word, which is a great feature, but not particularly useful here.

    So, it is a developer scenario to put a filter on the tree in the content section by creatorId. It would be best that this becomes "normal" but they can give you an over-ride to turn it off, or you can create a different user type that can see all of the articles.

    Once that has been created then you are in control again and will have what you need.

    Apologies, don't know what led me to be confused, but guess it happens to us all now and again.

    Regards

    Gary

     

  • Charles Afford 1163 posts 1709 karma points
    Apr 14, 2013 @ 21:24
    Charles Afford
    0

    Yea it would be a some development that would be needed.  I dont think that there is a package for that but maybe check out:

    http://our.umbraco.org/projects/backoffice-extensions/usergroup-permissions

    Its Nothing big.  All that would need to happen is some code to fire to allow the node to be shown if based on your parameter :).

    Charlie :)

Please Sign in or register to post replies

Write your reply to:

Draft