cancel
Showing results for 
Search instead for 
Did you mean: 

Get documents based on permissions over CMIS

del007
Confirmed Champ
Confirmed Champ

Hello,

We are working on web application which provides documents to users. We use SSO to allow access – so we have only username of a person who is connected (we don´t have password). Documents are stored in Alfresco. We suppose we have all access information (permission) to concrete document set only in Alfresco (ACL).

We would like to connect web application to Alfresco over CMIS.

How can we get (over CMIS) documents for which have permission rights only one concrete user? Is it possible to connect over CMIS as “administrator” and get permission rights as some concrete user? Or is it possible to use some query to filter documents results based on permission rights?

Thank you for advice

1 ACCEPTED ANSWER

mehe
Elite Collaborator
Elite Collaborator

ahhh, there is too much ticketing here and we lost context on the way 🙂 

Yes, the virtual user ROLE_TICKET needs a valid alf_ticket used as password.  You can obtain this ticket with a simple WebScript when you login to alfresco manually or supported by a SSO solution like CAS.

Obtain the alf_ticket from, for example .../alfresco/wcservice/autoticket.json (if you provided it to alfresco - you should be authenticated automatically via your CAS SSO when accessing a webSript over wcservice) and use the returned alf_ticket as password for the user ROLE_TICKET when opening a cmis session.

View answer in original post

11 REPLIES 11

del007
Confirmed Champ
Confirmed Champ

Thank you very much for your responses and advices. It is working now 🙂

kranthi
Star Contributor
Star Contributor

Hello petr Delong ,

I am also trying for role based ticket.Right now I am able to get the alf_ticket to access the alfresco/services to open the documents but I want to get the document based on the user permissions.In my application also I pushing documents through the CMIS to alfresco.