- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 10:54 PM
Hello Everyone,
I have a issue regarding Service now create new account API when i executed API in postman new account is creating,but i could not login to the new servicenow account.
API:-/api/now/v2/table/sys_user
Body:-
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 11:30 PM
Hi Shravan,
Department is a reference field to cmn_department table so sys_id needs to be specified instead of department name.
Password, also, can not be set by API.
Roles is in a different table name sys_user_has_role so a different api call needs to be made.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 11:30 PM
Hi Shravan,
Department is a reference field to cmn_department table so sys_id needs to be specified instead of department name.
Password, also, can not be set by API.
Roles is in a different table name sys_user_has_role so a different api call needs to be made.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 11:39 PM
Creating an user from API and then having an admin set the password from web browser will allow the user to login.