I want to get the current user's home space id not the root folder id using CMIS. I have looked in workspace details but nothing found. I tried a lot but I did not find anything.
I suspect that a user's home space is repository-specific, if a repository supports home spaces at all. It is not part of the CMIS spec.
Even across Alfresco implementations, people use different schemes for user home spaces.
If you know the scheme being used, though, you could get to it by navigating the hierarchy or writing a query. For example, if your Alfresco repo is using home spaces named after the user and those are being stored in User Homes, you could find the user's home space by getting a child of User Homes with the matching name. Or, if your users are all non-administrators, you could assume that the only folder in User Homes the user can see is their own, so you can just get the first child of User Homes.
Both of these approaches are supremely bad ideas if you are trying to create a robust solution that would work across Alfresco implementations or with other CMIS repositories.
I found your post comments while searching Google. Very relevant information. Great work. Regularly I do not make posts on blogs, but I have to say that this posting really forced me to do so. Really awesome post. Really fantastic and I will be coming back for more information at your site and revisit it! Thank you.