edGroup.id, 10));
        });

        sendAjaxRequest({
            "url": "/admin/users/{{.user.Id}}/groups",
            "method": "POST",
            "bodyData": JSON.stringify({
                "assignedGroupsIds": assignedGroupsIds
            }),
            "loadingElement": loadingIcon,
            "loadingClasses": ["loading", "loading-xs"],
            "modalId": "modal0",
            "callback": function (result) {

                if (result.Success) {
                    window.location.href =