cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine which sites a user is a member of?

aarenson
Champ in-the-making
Champ in-the-making
How can I determine which sites a user is a member of?

My knowledge of Alfresco is, sadly, somewhat feeble. I am just trying to learn about the various APIs, etc. as well as how the underlying architecture works.

Apologies if this is the wrong forum in which to ask this question. I could not determine an obvious best forum to use.
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
If you want to use AlfresocJAVAScript API you can check out this.It seems like there is no direct API for this but you can certainly achieve your goal by combining some the mentioned over here.
http://wiki.alfresco.com/wiki/4.0_JavaScript_Services_API

If you are using java you can use APIs of SiteService
http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/site/SiteService.html

aarenson
Champ in-the-making
Champ in-the-making
Thank you.

I don't want to write a program if I don't have to. Call me lazy, perhaps, but surely someone else has already figured this out?

As an aside, I don't understand why the Administrative area in Share doesn't simply tell one what sites a user is a member of.

aarenson
Champ in-the-making
Champ in-the-making
There appears to be a Javascript Services API and a Javascript API. There are also other APIs, I think. Is there some place which describe what all these various APIs are and how they are or are not related to each other?

mitpatoliya
Star Collaborator
Star Collaborator
I think this should give you enough idea about what it is.

zladuric
Champ on-the-rise
Champ on-the-rise
You can find this out by simply clicking on users' profile. There should be a tab of common information, but there is also a tab of all the sites the user belongs to.

aarenson
Champ in-the-making
Champ in-the-making
Aha! Thank you!

This seems obvious in retrospect, but I don't actually use Alfresco much, I've just been given the task of administering it, so I was trying to find out information from the Administrative interface and it hadn't occurred to me that site membership of a particular user would be available to all users.