cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to recreate guest user

lachmac
Champ in-the-making
Champ in-the-making
Hi,

the guest user was accidentally removed from within the system.

If I go in via the repository, guest home and select "manage permissions" I can see a guest user, but the icon has a red cross on it.

If I go in via the admin console and select users, I cannot see the guest user.

When I try to recreate the guest user I get an error message stating that the user already exists.

Please help!
2 REPLIES 2

loftux
Star Contributor
Star Contributor
I dont now how to fix your existing Guest user, but this is how you can create a new working one.

1. Create a new user, with username newguest (you can call it anything, just adjust instructions below). Give the user a long and hard password, you wont be using this to login
2. In the node browser (found in admin console in Alfresco Explorer), locate the nodeid for Company Home
3. Create a script, replace the nodeid in the sample script with the one from step 2.
var n = utils.getNodeFromString("workspace://SpacesStore/b160f1e7-8843-4bb2-a2c2-d6b29b3b6c5b");
n.setPermission("Read", "newguest");
Save the script in Data Dictionary, Scripts.
4. Execute the script (in Alfresco Explorer, from a Space of your choice, in details view, select Run Action)
5. In alfresco-global.properties, add
alfresco_user_store.guestusername=newguest
6. Restart Alfresco

One important thing, I'm not sure if this new user gets included in the EVERYONE group, better test that is doesn't accidentally open up your repository for all nodes that have EVERYONE set with read access.

lachmac
Champ in-the-making
Champ in-the-making
Smiley Happy

Thanks a lot for the input. I have worked my way through it, script executed without error, alfresco restarted.
Is there any way that I could verify that it worked ok and that I now have a working guest account?

I plan on using rss-feeds to keep tabs on when stuff gets updated in the various sites. How can I append the guest to the end of the feed url?

I did try to input a url, to a dokument to which the guest account should have access, and still I got the log in screen. I appended "?guestaccount=true"

Greatful for any help! thanks