cancel
Showing results for 
Search instead for 
Did you mean: 

How do I Get Person Object

dhiogocorrea
Champ in-the-making
Champ in-the-making
Hello!

I'm using DotCmis with C# to implement an alfresco desktop app. I have two questions:

1)  There is any way that I can get an CMis Person Object (Just like CMisFolder and CMis Document)? I know that it is possible in javascript, but I didn't found using dotcmis…

2) Can I get the user space folder without navigating to /User Homes/<user> folder? I easily implemented navigating node by node, but I think it's insecure, because Administrators have the power to change the "User Homes" folder's name such as user space's name (Alfresco Share).

Thanks! Smiley Happy
5 REPLIES 5

kaynezhang
World-Class Innovator
World-Class Innovator
For question 1Smiley Frustratedince you are using version 4.2.c and C# cmis:item is not supported ,the only approach you can use is webscript api, for example
GET /alfresco/service/api/people/{userName}

For question 2 : I guess there is no direct way in C# ,you need to customize your own webscript api to expose user home folder,then call your webscript api in your C# code.

dhiogocorrea
Champ in-the-making
Champ in-the-making
Thanks for the reply kaynezhang Smiley Happy

I'll try it soon inside my application. For now, I'm testing it in browser, it doesnt have support for tenant person, right? Its only for system persons?

kaynezhang
World-Class Innovator
World-Class Innovator
No, it supports tenant person,you should login as tenant administrator to call
 GET /alfresco/service/api/people/{userName}

HI kaynezhang

Is it possible to provide access (CMIS:READ/CMIS:WRITE) to specific user using dotCMIS?

Have you checked applyACL()?