Set Users Favourites based on script

We are using ownCloud as a way to view our Jobs folders whilst out on site (construction industry). Whilst I am able to make the default landing page Favorites, I was hoping to hook into the users based on the ldap connections and set their favorites for them. Would someone be able to point me in the direction of how this information is stored that would be really awesome. Thanks

Do you mean to log in as other users and set the favorites?

if yes, the Impersonate app would be helpful.

Would that allow me to set favorites for them or would the users still have to set their own favorites.

Also I was reading in the issues of ownCloud that favorites is based on tags, this seemed to be in the OC8, is this still the case?