Original Message:
Sent: Tue September 24, 2024 04:02 AM
From: Dirk Huppertz
Subject: MAS Bulk User Modifications?
Hi Flores
there is also a request body in the documentation:

Regards Dirk
------------------------------
Dirk Huppertz
Senior Project Manager
S&T Deutschland GmbH
Aachen
Original Message:
Sent: Tue September 24, 2024 03:41 AM
From: Flores Gallegos Romero
Subject: MAS Bulk User Modifications?
Hi Dirk,
Yes , I replaced the "REPLACE_THIS_VALUE" in the x-access-token with my real apiKey.
But in the documentation (https://developer.ibm.com/apis/catalog/maximo--maximo-application-suite-admin-apis/api/API--maximo--user-management#forcePasswordChange), the required in header are this:
x-access - token
Content-type - application/json
And required in parameters are:
userId - MAS Username
Look likes this screen capture
We have in this environment 2000 users for update the password after migrated from Maximo 7.6.1.2 and this fix is not my prefer but I will try.
Regards
Flores
------------------------------
Flores Gallegos Romero
Original Message:
Sent: Tue September 24, 2024 02:07 AM
From: Dirk Huppertz
Subject: MAS Bulk User Modifications?
Hi Flores,
I assume that you replaced the "REPLACE_THIS_VLAUE" in the x-access-token with your real apiKey, right?
How does the http request body look like?
There are three required fields: currentToken, token and oneTimeCode.
It should look like the example in the docs:
{
"currentToken": "b0089e60eb960c151a22c9eb31d18659f0c07944828fdc7bfc6271b78614d106",
"token": "5c4c68b98c6fbfd863f99560a98563fd8b617c55d729b588e6be32e9291f7ae6",
"oneTimeCode": "22:31"
}
Regards
Dirk
Original Message:
Sent: Tue September 24, 2024 01:56 AM
From: Flores Gallegos Romero
Subject: MAS Bulk User Modifications?
Hi Dirk,
I forget insert the message with a PUT request (soapUI)
NOTE. I insert these headers too
--header 'accept: application/json' \4 --header 'content-type: application/json' \5 --header 'x-access-token: REPLACE_THIS_VALUE' \
HTTP/1.1 400 BAD REQUESTserver=nginxdate=Tue, 24 Sep 2024 05:55:49 GMTcontent-type=application/jsoncontent-length=325cache-control=no-storepragma=no-cachecontent-security-policy=default-src 'none'{"exception":{"id":"AIUCO1000E","properties":[]},"message":"AIUCO1000E: The request was not valid. Review the constraint violations provided [1 violations]","uuid":"bf38144d-a579-4f13-9d68-203a67c46e1f","violations":[{"exception":{"id":"AIUCO2008E","properties":[[[]]]},"message":"AIUCO2008E: Invalid input violation: []"}]}
Regards,
Flores
------------------------------
Flores Gallegos Romero
Original Message:
Sent: Tue September 24, 2024 01:44 AM
From: Dirk Huppertz
Subject: MAS Bulk User Modifications?
Hi Flores
The http response code 405 indicates that you are using a http method (GET, POST, etc.) that is not allowed.
How do you send the request?
Make sure that you are using the PUT method as shown in the documentation.
Regards Dirk
------------------------------
Dirk Huppertz
Senior Project Manager
S&T Deutschland GmbH
Aachen
Original Message:
Sent: Tue September 24, 2024 01:36 AM
From: Flores Gallegos Romero
Subject: MAS Bulk User Modifications?
Hi to all,
I opened a case with IBM and the result is the same than Jason recomended.
With this link you can force password change:
https://developer.ibm.com/apis/catalog/maximo--maximo-application-suite-admin-apis/api/API--maximo--user-management#forcePasswordChange
Whit this link you can change MAS User Pass:
https://developer.ibm.com/apis/catalog/maximo--maximo-application-suite-admin-apis/api/API--maximo--user-management#changeMasUserPass
SINTAX: https://api.{mas-instance-id}.{mas-domain}/v3/users/{userId}/forcepasswordchange
But at the moment I couldn't work succesfull. It show this message error:
{"exception":{"id":"AIUCO1999E","properties":["405 Method Not Allowed: The method is not allowed for the requested URL."]},"message":"AIUCO1999E: Internal Server Error: 405 Method Not Allowed: The method is not allowed for the requested URL.","uuid":"5ca6b219-de28-4c42-b168-b89f31dc0446"}
The case is still open
Regards,
Flores
------------------------------
Flores Gallegos Romero
Original Message:
Sent: Mon September 23, 2024 04:50 PM
From: Jason VenHuizen
Subject: MAS Bulk User Modifications?
Original Message:
Sent: 9/23/2024 4:39:00 PM
From: David Miller
Subject: RE: MAS Bulk User Modifications?
I guess I forgot to ask can you even CREATE USERS anymore from Outside into Maximo as I assume user creating cant go into the Manage by Mxloader and sync to MAS correct? It must start at MAS and synch to Manage?
------------------------------
David Miller
Managing Partner - Maximo Consultant
Enterprise Integration Partners LLC
Original Message:
Sent: Mon September 23, 2024 04:23 PM
From: David Miller
Subject: MAS Bulk User Modifications?
Asking a question I pretty much know what the answer will be but here goes...
Is there any way to modify User Accounts in Bulk in MAS (8 or 9) like we used to be able to do with MxLoader? I am assuming I can still use Mxloader to get at the User record in Manage but that cannot touch the Entitlement settings in MAS correct? Any way to modify user entitlements in Bulk since they in Mongo DB?
For example I have 82 Users from a Demo install that all need:
Entitlement upgrade required
To meet the requirements of the combined access permissions for the Manage application, the current application entitlement needs to be changed to Premium entitlement.
Any way to do these in bulk? Can any Mongo DB admin be done in bulk at all?
Appreciate any advice as learning this in my sandbox will help for clients in the future.
------------------------------
David Miller
Managing Partner - Maximo Consultant
Enterprise Integration Partners LLC
------------------------------