RE: Get the list of legal entities of a User
Hi Andre,
I think the table your are are talking is UserDataAreaFilter and yes it contains all the legal entities.
We have a crosscompany upload functionality where we have a company column based on which we update some tables. If the user who is uploading doesn't have access it should throw error. Also the error log will have list of errored records so user with specific access to legal entities should be able to see the records.
SecurityRights rights = SecurityRights::newUser(userId);
container companies = rights.getSelectableCompanies();
this works but I noticed one thing if we provide any organization hierarchy and grant it to a user it doesn't add those legalentites ...