 "/admin/users/{{.user.Id}}/groups?page={{.page}}&query={{.query}}";
                } else {
                    showModalDialog("modal0", "Error", "An unexpected error has occurred.");
                }
            }
        });
    }

    function grantMembership(evt, elem) {
        evt.preventDefault();

        const groupsTable = document.getElementById("groupsTable");
        const groupsSelect = document.getElementById("groupsSelect");

        const groupId = groupsSelect.value;
        if (groupI