Skip Navigation
Expand
Creating a User for Oracle Field Service using REST API results in 'Resource is not route holder' error
Answer ID 11227   |   Last Review Date 11/08/2019

Why am I receiving the error "Resource is not route holder, select another resource or bucket" when I try to create a User using REST API?

Environment

Oracle Field Service (OFS)

Issue

I am trying to create a User using REST API call  /rest/ofscCore/v1/users/{login} but I am receiving the error "Resource is not route holder, select another resource or bucket".

This is my payload:

"passwordTemporary": true,
"selfAssignment": true,
"dateFormat": "mm/dd/yy", "timeFormat": "24-hour",
"language": "en",
"login": "TT384700",
"name": "TEST ORACLE",
"timeZone": "EST",
"userType": "FIELD_SUPERVISOR",
"password": "oracle@123",
"resources": ["ORLANDO_FL", "MIAMI_FL"],
"uemail": "test@test.com",
"uphone": "+15555555555"

Resolution

The error is presented because the Resources specified in the request are Groups and the request has parameter "selfAssignment": true.

Self-assignment option enables the Resource to add new activities to his or her individual route. You must assign a User who has self-assignment permission directly to a bucket. Users who can assign activities to themselves cannot be in groups.​​

To resolve the issue you can assign the Resource directly to a bucket (if this is the use case) or set "selfAssignment": false.

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.