cancel
Showing results for 
Search instead for 
Did you mean: 

Java-client Check whether a user is an external user?

Carlos_Romero
Champ in-the-making
Champ in-the-making

Hey Guys, I would like to check whether a user is external or not, right now fetching the user there doesn't seem to be an easy way to check whether the user is external or not from the User object. Are there any ways to do this with the Java client?

1 REPLY 1

Daniel_deLamare
Champ on-the-rise
Champ on-the-rise

I think that the Java object you are looking for is a NuxeoPrincipal. Though it's not called external directly, there is a method called isAnonymous() which might be what you're looking for. If not that method, it's possible you can check the principal's groups and see if there is an external group (or maybe they are missing a user group)

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.