Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Patch : Update username with domain email change

Edited
Vinod Kumar
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!
Nov 14, 2023

User provisioning API's patch users:  I am trying to update multiple users at one time. I want to update 1000+ employees with username updates. I really dont want to update for each employee individual. We are currently using Postman tool.  

We want to update the domain name in the username from MySource to Myhenry.com

Email id is our username.

Below code works for one user. Question is how to update for mutiple users at one go.

 

{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ], 
  "Operations": [
    { "op""replace","value": {"userName": "andrew.rey@Myhenry.com"} }
  ]
}


Any advise will be great help.

1 answer

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 14, 2023

Hi @Vinod Kumar,

Welcome to Atlassian Community!

Postman allows you to run collections based on imported data, which is probably what you are looking for. Another option would be to create a script in ruby/perl/whatever that can make API calls and iterate over data. A third option would be to use an iPaaS tool that allow you to create a workflow to do the same.

Vinod Kumar
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!
Nov 14, 2023

I have very limited resources to get other tools in my laptop. 

 

Can we use the below code to run for multiple users instead of specifying the ID?

{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ], 
  "Operations": [
    { "op""replace","value": {"userName": "andrew.rey@Myhenry.com"} }
  ]
}
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 15, 2023

You mentioned above that you are using Postman correct? Did you happen to take a look at the link I provided above to Postman's documentation showing you how to run collections based on imported data? If you take a look at it you will see that you can provide the input and then iterate on it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events