number resourceId = 123; number groupId1 = 456; number groupId2 = 789; Dictionary groupPermission = {groupId1: "Write", groupId2: "FullControl"}; updateGroupResourceIdPermission(resourceId, groupPermission);