Users API

Find users

Finds users.

GET/rest/msm/users
 Query parameters
  • filter: (mandatory) the default value is all and it looks for all users, you can also use the values active to look just for active users and inactive to look for inactive users.
 Header auth-token: value of the authentication token.
 Header/Parameter  tenant
 Body  none
Returns List of UserModel

 

Required role MWP_ADMIN
Managed errors
  • 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/msm/users' -H 'auth-token:a07e4124-3d21-4d06-b831-21a71f66737e._hzInstance_1_dev' -H 'tenant:default'

curl 'http://localhost:8080/mwp/rest/msm/users?filter=active' -H 'auth-token:a07e4124-3d21-4d06-b831-21a71f66737e._hzInstance_1_dev' -H 'tenant:default'

curl 'http://localhost:8080/mwp/rest/msm/users?filter=inactive' -H 'auth-token:a07e4124-3d21-4d06-b831-21a71f66737e._hzInstance_1_dev' -H 'tenant:default'

Example response

[ 
 { 
 "id":10,
 "username":"fran",
 "email":"fran@email.com",
 "roles":[ 
 { 
 "id":2,
 "role":"USER",
 "description":"Allows access to Match Web Player for consultation of all configured KBAs"
 }
 ],
 "attributes":[ 
 { 
 "attribute":{ 
 "id":2,
 "name":"AT1",
 "description":"AT2",
 "unique":false,
 "mandatory":false
 },
 "value":null
 }
 ],
 "accountAccess":"ENABLED",
 "nonPersonalAccount":false,
 "deleted":false,
 "passwordExpired":false,
 "passwordChangeDate":null,
 "isActive":false
 },
 { 
 "id":13,
 "username":"fran5",
 "email":"francisco.sestayo5@email.com",
 "roles":[ 
 { 
 "id":2,
 "role":"USER",
 "description":"Allows access to Match Web Player for consultation of all configured KBAs"
 }
 ],
 "attributes":[ 
 { 
 "attribute":{ 
 "id":2,
 "name":"AT1",
 "description":"AT2",
 "unique":false,
 "mandatory":false
 },
 "value":null
 }
 ],
 "accountAccess":"DISABLED",
 "nonPersonalAccount":false,
 "deleted":true,
 "passwordExpired":false,
 "passwordChangeDate":null,
 "isActive":false
 }
]