Apologies, Sergio. You're right. You can see the modules and applications you have access to, but not security groups.
If you have security groups for individual sites, you can create a data source for MAXUSER with a relationship to the user group table. In your pageResumed function in AppCustomizations.js, you can do something like this:
pageResumed(page, app) {
this.app = app;
this.page = page;
if (this.page.name === 'schedule' && this.app.state.allowsites=== undefined) {
this._checkAllowedSites().then((check) => {
this.app.log('checkAllowedSites', check);
});
}
async _checkAllowedSites() {
const userDS = this.app.findDatasource('userDS');
await userDS .initializeQbe();
userDS .setQBE('userid', '=', this.app.userInfo.userName); // MAS
const user = await userDS .searchQBE();
// get a list of your sites with the relationship
this.app.state.allowsites= list || undefined;
return this.app.state.allowsites;
}
Hopefully, this can help you.
Cheers,
Maycon