Skip to content

Commit 1b97019

Browse files
authored
Expose groups when retrieving a single directory user (#353)
1 parent 9ff126a commit 1b97019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directory-sync/directory-sync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { WorkOS } from '../workos';
22
import { Directory } from './interfaces/directory.interface';
33
import { List } from '../common/interfaces/list.interface';
44
import { Group } from './interfaces/group.interface';
5-
import { User, UserWithGroups } from './interfaces/user.interface';
5+
import { UserWithGroups } from './interfaces/user.interface';
66
import { ListDirectoriesOptions } from './interfaces/list-directories-options.interface';
77
import { ListGroupsOptions } from './interfaces/list-groups-options.interface';
88
import { ListUsersOptions } from './interfaces/list-users-options.interface';
@@ -27,7 +27,7 @@ export class DirectorySync {
2727
return data;
2828
}
2929

30-
async getUser(user: string): Promise<User> {
30+
async getUser(user: string): Promise<UserWithGroups> {
3131
const { data } = await this.workos.get(`/directory_users/${user}`);
3232
return data;
3333
}

0 commit comments

Comments
 (0)