Resetting a users dashboard in Alfresco Share

It may happen, in some peculiar circumstances, that a users dashboard becomes corrupted. The signs for when this happens is that the users dashboard can’t load or that there’s an error when the user tries to customize the user  dashboard. One way of handling this is to delete all information about the dashboard, that is delete the chosen page layout and dashlets and reset the dashboard to the default state it has when a new user is created. Following is a small script that can be executed from the Javascript Console (

var userid = 'this_is_a_user_id';

// get the spring web application context
var ctx =;

// get hold of the Spring bean surfConfigCleaner from the remote-api-context.xml file
var surfConfigCleaner = ctx.getBean('surfConfigCleaner');

// find the person instance for the particular user id
var person = people.getPerson(userid);

// execute the behaviour method which does the cleaning

Using the Javascript Console in this manner (getting hold of Spring Beans) is, as the creator of it says, pretty powerful. Quoting Florian Maul (fme AG), “With great power comes great responsibility!”.

This entry was posted in Alfresco, Javascript. Bookmark the permalink.

18 Responses to Resetting a users dashboard in Alfresco Share

  1. Nice way of using spring beans in javascript. I can imagine several ad hoc tasks where this could come in handy.

    • Helene says:

      Artémise. Exact. Je pensais à Max un Moritz, figures humoristiques dessinées (mon beau-frère allemand s’appelle Götz, lapsus révélateur ?). Mais Götz und Moritz existent aussi;j e crois mais n’en suis pas sûr que ce sont des husesimtor-chansonniers à la télé. A vérifier.

    • Packed full of proven tips to overcome shyness, this concise book is a real boon with be valuable to many people. The author started from a position of acute social but now is extremely relaxed around people. In a very clear step-by-step fashion, she tells the reader what method she used to get there.I’ve followed spme of the techniques and they have already proven beneficial to me.

    • Parmi les villes les moins endettées, on trouve Strasbourg (PS), avec une dette de seulement 545 euros par habitant, et Toulouse (PS), avec une dette de 142 euros par habitant.ceci dit, il faudrait regarder la structure de la dette et les capacités de remboursement. En clair, les 728 millions d’euros financent-ils de l’investissement (infrastructures, …) ou du fonctionnement (budget en déficit)

    • Really trustworthy blog. Please keep updating with great posts like this one. I have booked marked your site and am about to email it to a few friends of mine that I know would enjoy reading..

    • “determination for what? let’s start with thisLarry expresses respect for determinationwhat do you mean in this context?”Larry expresses respect, appreciation, for Palestinian activists that heroically risk their safety and comfort, to make a statement of personal dignity, and to seek change in their objective conditions.And, he expresses particular respect for those committed to non-violent methods and ideology, “kind determination”.No?

    • My wife or husband and my partner and i? michael unclear exactly why however this amazing site will be filling amazingly sluggish individually. Will be anybody else having this particular concern or possibly is this a worry by myself conclusion? I? ll revisit afterwards if ever the difficulty nonetheless is out there.

    • http://www./ says:

      Priya, i had tried this recipe last evening and kept munching the ladoos till late in the night… it was totally yummy and i wanted to thank you for the delicious recipe with healthy components… :-) hats off to you dear

    • http://www./ says:

      Claudio: Estuve intruseando en tu blog y la verdad de las cosas es que está excelente. Muy informativo e innovador. Soy comunicador y me interesa de sobremanera este fenómeno. Felicitaciones

    • http://www./ says:

      I only want to express I am just a starter to writing a blog and site-building and of course I much like this site. Certainly I am planning to bookmark your web page . You actually should have include impressive web content and reviews. Appreciate it for posting your blog.

    • http://www./ says:

      Milja Hahto on oikeassa pH:n suhteen. Ihon tulee olla lievästi hapan, muuten ei tunnu hyvältä. Ja tosiaan tuo omenaviinietikka ajaa saman asian, itse en tosin aina jaksa tehdä kasvoja varten tuota etikkavettä (käsiä varten kyllä, koska se vaan tuntuu niiiin hyvältä…) Eri ekologista ruusuvesi ei toki ole; mun pullo lienee Intiasta. On kuitenkin sen verran riittoisaa, että kuukausikaupalla se on kestänyt vaikka nykyään miehenikin käyttää sitä partavetenä. Mutta ilmankin siis pärjää. Sisältäpäin rasvaaminen toimii myös!

    • Que eu saiba a questão dos orçamentos e respectivos falhanços não é da conta desse senhor. E como árbitro, não deve tocar nesse assunto. Depois, pode dizer que convive muito bem com as críticas, mas gostaria que ele próprio admitisse os erros graves que comete! Como ser humano, claro!

    • This ensemble looks fantastic on the model, but Emma can’t pull it off. It looks like a minidress worn with pants on her. Besides, the pants are too long.I hope we will see this look on someone who can pull it off, someone taller.

    • En fait je pense que j’ai plus dattente quand je machete une loterie ou quand je vais au casino 1 fois par année. Dans le sens que j’ai plus souvent gagné au jeux quand amour malheureusement. Il faut croire que même la loterie n’est pas une bonne comparaison avec l’amour. Après 10 dates en 10 mois je me suis jamais senti autant malchanceux. Pourtant le maximum que j’ai été sa été 2 dates dans la meme période jamais daté les 10 en meme temps.

  2. Fannie says:

    isn’t putting a dollar in the donations box the next time he goes to a museumDO YOU HEAR THAT MUSEUMS OF INDIANAPOLIS? YOU WILL HAVE TO SURVIVE WITHOUT UNCLE MOG1NBAYS&#82E7; DOLLAR!!!

  3. tejal says:

    Thank you for sharing the article…Keep posting on it.If any looking for RPA Training…chk it here.

  4. Meera kumar says:

    I think things like this are really interesting. I absolutely love to find unique places like this. It really looks super creepy though!!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>