aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/user_groups.ts
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2023-03-29 10:01:45 +0200
committersonartech <sonartech@sonarsource.com>2023-03-30 20:03:08 +0000
commit4a890c4af46a720b7da263b7b9d46712242220b7 (patch)
treeef27ee225e4ab4dec3bdffc9c6d2bf4dbb3a0b86 /server/sonar-web/src/main/js/api/user_groups.ts
parent5bc7a4f08642272126c5bc29787fed8b9c24ead8 (diff)
downloadsonarqube-4a890c4af46a720b7da263b7b9d46712242220b7.tar.gz
sonarqube-4a890c4af46a720b7da263b7b9d46712242220b7.zip
SONAR-18657 Add members view for groups in a managed instance
Diffstat (limited to 'server/sonar-web/src/main/js/api/user_groups.ts')
-rw-r--r--server/sonar-web/src/main/js/api/user_groups.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/user_groups.ts b/server/sonar-web/src/main/js/api/user_groups.ts
index 9b2ebe32352..0e7fd144827 100644
--- a/server/sonar-web/src/main/js/api/user_groups.ts
+++ b/server/sonar-web/src/main/js/api/user_groups.ts
@@ -19,7 +19,7 @@
*/
import { throwGlobalError } from '../helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { Group, Paging, UserSelected } from '../types/types';
+import { Group, Paging, UserGroupMember } from '../types/types';
export function searchUsersGroups(data: {
f?: string;
@@ -37,7 +37,11 @@ export function getUsersInGroup(data: {
ps?: number;
q?: string;
selected?: string;
-}): Promise<Paging & { users: UserSelected[] }> {
+}): Promise<
+ Paging & {
+ users: UserGroupMember[];
+ }
+> {
return getJSON('/api/user_groups/users', data).catch(throwGlobalError);
}