Skip to content

Commit c36d4d7

Browse files
author
Nivedithaa Mahendran
committed
update
1 parent dc647ea commit c36d4d7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/mas/devops/users.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,16 @@ def set_user_group_reassignment_auth(self, user_id, groupreassign, manage_api_ke
366366
self.logger.info(f"Setting group reassignment authorization for user {user_id} with {len(groupreassign)} groups")
367367

368368
# Use Manage API to update the user's grpreassignauth
369-
url = f"{self.manage_api_url_internal}/maximo/api/os/masapiuser/{user_id}"
369+
url = f"{self.manage_api_url_internal}/maximo/api/os/masperuser/{user_id}"
370370
querystring = {
371371
"lean": 1,
372372
"ccm": 1
373373
}
374374
headers = {
375375
"Content-Type": "application/json",
376-
"apikey": manage_api_key["apikey"]
376+
"apikey": manage_api_key["apikey"],
377+
"x-method-override": "PATCH",
378+
"patchtype": "MERGE"
377379
}
378380

379381
payload = {

0 commit comments

Comments
 (0)