Skip to content

Commit 9c9ed89

Browse files
Gianfranco97Hector Rondon
authored andcommitted
feat(GlpiRestClient): get users
1 parent dbc78cf commit 9c9ed89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/restclient.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,18 @@ class GlpiRestClient {
516516
})
517517
}
518518

519+
getUsers () {
520+
return new Promise( async (resolve, reject) => {
521+
try {
522+
resolve (
523+
await this.getAllItems('User')
524+
)
525+
}
526+
catch (err) {
527+
reject(err)
528+
}
529+
})
530+
}
519531
}
520532

521533
export default GlpiRestClient

0 commit comments

Comments
 (0)