$p.groupIds
Overview¶
This section explains the function that retrieves the list of IDs of the groups you belong to. You can obtain the list of IDs of the groups that the logged-in user belongs to.
Syntax¶
Usage Examples¶
(1) Log in as an account administrator and create a table.
(2) Create a new Script and enter the following script. Check Index as the output destination and update.
JavaScript¶
$p.setMessage('#Message', JSON.stringify({
Css: 'alert-success',
Text: 'The IDs of the groups you belong to are [' + $p.groupIds().join(', ') + '].'
}));
(3) Navigate to the index screen.