use of org.pmiops.workbench.firecloud.api.GroupsApi in project workbench by all-of-us.
the class FireCloudServiceImpl method removeUserFromGroup.
@Override
public void removeUserFromGroup(String email, String groupName) throws ApiException {
GroupsApi groupsApi = groupsApiProvider.get();
groupsApi.removeUserFromGroup(groupName, "member", email);
}
use of org.pmiops.workbench.firecloud.api.GroupsApi in project workbench by all-of-us.
the class FireCloudConfig method groupsApi.
@Bean
@RequestScope(proxyMode = ScopedProxyMode.DEFAULT)
public GroupsApi groupsApi(@Qualifier(ALL_OF_US_API_CLIENT) ApiClient apiClient) {
// Group/Auth Domain creation and addition are made by the AllOfUs service account
GroupsApi api = new GroupsApi();
api.setApiClient(apiClient);
return api;
}
use of org.pmiops.workbench.firecloud.api.GroupsApi in project workbench by all-of-us.
the class FireCloudServiceImpl method addUserToGroup.
@Override
public void addUserToGroup(String email, String groupName) throws ApiException {
GroupsApi groupsApi = groupsApiProvider.get();
groupsApi.addUserToGroup(groupName, "member", email);
}
Aggregations