REST API gives 404 error

Hello all!
I’m trying to use the REST API according to the documentation, but I am getting 404 error:

{
    "timestamp": 1750942666700,
    "status": 404,
    "error": "Not Found",
    "path": "/openiam-ui-static/401"
}

Request tested is:

curl --location '${ENDPOINT}/webconsole/rest/api/users/${USER_ID}/groups?size=20&from=0&deepFlag=true' \
--header 'Accept: application/json' \
--header 'Authorization: ••••••'

In the rproxy log I see the following:

[Thu Jun 26 13:08:39.704978 2025] [openiam:error] [pid 20:tid 67] oauth2 error insufficient_scope. code: 403 error description: The request requires higher privileges than provided by the access token scope: CONTENT_PROVIDER_default cp_1739977150776
10.21.33.87 - - [26/Jun/2025:13:08:39 +0000] "GET /webconsole/rest/api/users/8a8081a597a38c590197a87af4b50064/groups?size=20&from=0&deepFlag=true HTTP/1.1" 404 92 "-" "PostmanRuntime/7.44.1"

The oAuth2 client’s default scope is configured as follows:

default cp - /webcosole/*

Version tested is: Version: 4.2.1.11.402fd73, Build: 2024/10/29 09:27 +0000, Last commit 2024/10/29 09:20 +0000
Any help will be appreciated.

Best regards
Cristhian

This error has occurred because the request requires higher privileges than provided by the access token scope. If they do not have any custom URI pattern like /webconsole/rest/api/users/* they need to add “/webconsole/rest/api/*” URI pattern to the default scope.

Hi Pradeep!
Yes, I fixed that particular error by adding /webconsole/rest/api to the default scope

Thanks for the assistance!