cancel
Showing results for 
Search instead for 
Did you mean: 

how to get all user list of alfresco and manage permissions of document visibility using DotCMIS dll

shivtechno
Champ in-the-making
Champ in-the-making

How to manage the visibility of document by its permission or any using dotcmis dll file.

and how to get all list of users in alfresco by querying it.

1 ACCEPTED ANSWER

kaynezhang
World-Class Innovator
World-Class Innovator

You can get or set an object's permission by using method  GetAcl/ApplyAcl of ISession.

To find a user or a set of users via a CMIS query,you can do it like this

    IItemEnumerable<IQueryResult> qr1 = session.Query("SELECT * FROM cmSmiley Tongueerson", false);

Or select some fields for users with where condition

  IItemEnumerable<IQueryResult> qr1 = session.Query("SELECT cm:userName, cm:homeFolder FROM cmSmiley Tongueerson where cm:userName like 'ttt%'", false);

View answer in original post

1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator

You can get or set an object's permission by using method  GetAcl/ApplyAcl of ISession.

To find a user or a set of users via a CMIS query,you can do it like this

    IItemEnumerable<IQueryResult> qr1 = session.Query("SELECT * FROM cmSmiley Tongueerson", false);

Or select some fields for users with where condition

  IItemEnumerable<IQueryResult> qr1 = session.Query("SELECT cm:userName, cm:homeFolder FROM cmSmiley Tongueerson where cm:userName like 'ttt%'", false);