User Manual

10.04.2024

MANUAL

Developer Function: Server Script: groups.Update

## Overview Update the "[Group](/en/manual/group)" of the group ID specified in the "[Server Script](/en/manual/table-management-server-script)". ## Prerequisites Site Administration Permission is required to update groups using this function. If you want to update a group as a user without site manager privileges, you will need to specify the API key of a user with Site Administration Permission. ## Syntax ``` groups.Update(groupId, data) ``` ## Parameters |Parameter|Type|Required|Description| |:----------|:----------|:---:|:---------------------------| |groupId|object|Yes|Specify the group ID of the target group| |data|string|Yes|Specify the update content in JSON format| ## Return Value If the specified "[Group](/en/manual/group)" can be updated, true is returned; if not, false is returned. ## Usage Example The following example updates the members of "[Group](/en/manual/group)" of group 100 with "[User](/en/manual/table-management-choices-text-users)" with user ID 5 and "[Dept](/en/manual/table-management-choices-text-depts)" with department ID 3. Specify "User, User ID, Manager Permission (true/false)" if the member is a user and "Dept, Department ID, Manager Permission (true/false)" if the member is a department. All member updates will be rewritten with the specified one. ##### JavaScript ``` const apiKey = 'xxxxx...'; const userId = 5; const deptId = 3; const groupId = 100; let groupMembers = [ `User,${userId},true`, `Dept,${deptId},false` ]; const data = { ApiKey: apiKey, GroupMembers: groupMembers }; groups.Update(groupId, JSON.stringify(data)); ``` ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-choices-text-depts">Table Management: Editor: Item Detail Settings: Option List: Departments</a><span>08.13.2024 up</span></li> <li><a href="/en/manual/table-management-choices-text-users">Table Management: Editor: Item Detail Settings: Option List: User</a><span>08.13.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article> <ul><li><a href="/en/manual/group">Group Management Function</a><span>10.08.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.