03-31-2017 06:37 AM
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
05-24-2017 08:50 AM
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.
05-25-2017 05:43 AM
Thank you very much for your responses and advices. It is working now 🙂
09-04-2017 01:37 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.