about girder job plugin

I’ve been trying to create a job using the GirderClient in Python with the following code:

from girder_client import GirderClient

gc = GirderClient(apiUrl='http://localhost:8080/api/v1')
gc.authenticate('user', '123456')
gc.post('job', parameters={"title": "test", "type": "abc"})

However, I encountered an error that states:

{
“message”: “Invalid token scope, required: jobs.rest.create_job.”,
“type”: “access”
}

Has anyone experienced this before? How can I assign the required token scope or resolve this issue?
Thanks in advance!

You have to create an API key with the jobs.rest.create_job scope and then use that API key to authenticate girder client.