Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set Custom Username When Creating Users Through JSD REST API

gunwoo.park
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 25, 2021

Hi, I'm Gunwoo Park.

I have a user pool and want to let my users to log into JSD through my user pool. There is no "email" information in my user pool, so I'd like to use "sub" for Open ID Connect.

I need to create a corresponding JSD user programmatically for each user and I've checked JSD REST API and found POST /rest/servicedeskapi/customer.

There is a problem with the mentioned endpoint, which is I cannot set "username" as whatever I want. The JSD REST API document says "The customer's username is their email address", which is obviously a different behavior with JSD Admin Webpage where I can set "username" as whatever I want.

This prevents me from assigning "sub" as "username" since the endpoint requires me to insert a valid email address, which cannot cover the sub format like 00567bd3-afe3-4eac-b123-b9e49aa1aca0.

I suggest you to consider adding a new input paremeter "username" on POST /rest/servicedeskapi/customer, which will allows me to create JSD users with sub as username.

I'll be looking forward to hearing from you. Thank you.

1 answer

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 29, 2021

Hello @gunwoo.park,

Welcome to the Atlassian Community!

When creating new accounts via UI or via API, it’s not possible to set a username for customers or users.

Usernames were deprecated due to GDPR and now for all new customers, the username will have this unique ID and it's internal, customers won't see it.

On the customer portal, customers can only log in with their email address and password.

Users can log in with email and password or also with Google, Microsoft, Apple or, in case the domain is verified and SAML is configured, they can use an identity provider to login.

There is a feature request suggesting this ability, but it was created before the deprecation of usernames.

For more information, please check the blog post below:

Kind regards,
Angélica

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events