9 Replies Latest reply: Nov 5, 2013 3:30 PM by frank191
optimisme Level 1 Level 1 (0 points)

After choosing the "Hide person" option from the wiki, it is impossible to unhide that person using the tools from Apple. Is there a command line or a way to make a person profile visible again?


Lion server, Mac OS X (10.7.1)
  • 1. Re: Wiki, "Unhide" a person
    toyarmybin Level 1 Level 1 (0 points)

    You could follow several steps to unhide a person, which is hidden by "hide a person..."

    1. Go to the "People" page;

    2. Create a new page by clicking the plus botton;

    3. The new page that you've created must have exactly the same name of the hidden person's name;

    4. Refresh and go back to your "People" page, the hidden person is back;

    5. Now you could delete the page you've just created, and meanwhile you could hide yourself again by clicking "Config".

  • 2. Re: Wiki, "Unhide" a person
    Steven Bytnar Level 1 Level 1 (0 points)

    These steps to "unhide a person" do not work!

  • 3. Re: Wiki, "Unhide" a person
    Steven Bytnar Level 1 Level 1 (0 points)

    This does seem to work reliably: (replace myuser with the user you want to unhide.)

     

    sudo psql -U _postgres collab << EOF

    select * from entity where is_hidden=true;

    update entity set is_hidden=false where short_name='myuser';

    update entity set is_hidden=true where short_name='unauthenticated';

    update entity set is_hidden=true where short_name='authenticated';

    EOF

     

    wikiadmin resetQuicklooks

    wikiadmin fixPermissions

    wikiadmin rebuildSearchIndex

     

    -------

     

    The select statement is there just in case you need to revert something, you have what the previous state was.

  • 4. Re: Wiki, "Unhide" a person
    toyarmybin Level 1 Level 1 (0 points)

    Really? Would you please post your steps with more information on version of your OS since it works fine with my Lion server.

  • 5. Re: Wiki, "Unhide" a person
    Steven Bytnar Level 1 Level 1 (0 points)

    Hi,

     

    I don't doubt that the method might work for some people. Just not for me.

    I'm running 10.7.3 Lion Server.

    This was a clean install from 10.7.2.

    I did not migrate data from an older version of OS X Server.

     

    I tried creating a new user with the same long name (not shortname/username) as the hidden user. All this did was create a new Document with that name in the administrator user's Documents area in the administrator user's People pages. It didn't unhide the user. I wound up digging into the database (since I'm a software engineer) and figured out how to unhide that way.

     

    The next thing I want to figure out is how to delete all traces of a user, and/or how to reset the entire Wiki back to a clean install default configuration.

  • 6. Re: Wiki, "Unhide" a person
    toyarmybin Level 1 Level 1 (0 points)

    Hi, I see what you mean

    And deal with my way in fact you created a new user though you unhide the hidden one at the same time, which I guess is the confliction between user configurations.

    Or I guess it worked since I tried recovered my wiki after a re-installation.

    Hoping you would figure out how to reset the wiki and I will try your way next time (though I hope not to use this function forever).

     

    Thanks!

  • 7. Re: Wiki, "Unhide" a person
    Steven Bytnar Level 1 Level 1 (0 points)

    The "Hide person" feature is very disfunctional. Hidden users show up when you search for them. Hide only seems to apply to whether it shows up on the wiki/people/ page.

     

    I haven't tried this yet, but this look promising for resetting the Wiki:

    https://discussions.apple.com/message/17775566#17775566

     

    What is more disturbing is that spammers who access your wiki can find the short names of all users (and thus email addresses) who use the server. (By using the People page and by executing creative searches at the People page.)

  • 8. Re: Wiki, "Unhide" a person
    toyarmybin Level 1 Level 1 (0 points)

    Well, mine works fine and if you hide someone all related material on his personal site is insearchable. And of course what is on wiki is only affected by the authorization settings.

    Thanks for comments on resetting the Wiki, I will try when I have a chance.

  • 9. Re: Wiki, "Unhide" a person
    frank191 Level 1 Level 1 (0 points)

    When logged in as the wiki administrator, If you navigate to the persons page via the known URL (i.e. http://nameofyourserver.com/wiki/people/username-of-person) you can then click the gear icon, and "Unhide Person..." should be listed as an option.

     

    The only caveat is knowing the person's username which should be viewable through directory services or Server.app.

     

    Screenshot is from Wiki Server 3 as part of Mountain Lion Server.

    screenshot.png