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

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?

0 votes

1 answers



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)

0 votes