Workforce OAuth: use department scope for departments endpoint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-02 01:03:12 +00:00
parent 875835bb7c
commit 1bab3d273f

View file

@ -31,7 +31,7 @@ async function getWorkforceToken() {
grant_type: 'password', grant_type: 'password',
username: creds.email, username: creds.email,
password: creds.password, password: creds.password,
scope: 'me department', scope: 'department',
}).toString(), }).toString(),
signal: AbortSignal.timeout(10000), signal: AbortSignal.timeout(10000),
}) })