Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to determine what groups a user belongs to?

The IRoleFactory has this handy method:

public java.lang.String[] getRolesOfUser(java.lang.String uniqueIdOfUser,
                                         boolean recursive)

However, the IGroupFactory has no similar method for fetching all the groups a user belongs to. Is there an easy way to do this?

I suppose I could get all groups, and remove the user from each one, but this isn't very efficient.

Is there a better way?

Former Member
Not what you were looking for? View more on this topic or Ask a question