Menu

Rest API "The profile REST Services User is required to access the REST web services"

Marco
2020-02-12
2024-10-13
  • Marco

    Marco - 2020-02-12

    Hi All,
    I'm having a problem to use the API. I created one user with the profile "rest services user" but when I'm trying to call the api I'm gettin the error "Error: This user is not authorized to use the web services. (The profile REST Services User is required to access the REST web services)"
    If I change in the configuration 'secure_rest_services' => on false, then the API works correctly.
    Did I miss something?

    Many Thanks
    Marco

     
  • Guillaume Lajarige

    Hello Marco,

    In the old versions of iTop, any administrator user could use the REST API. From iTop 2.5 to newer version, users must explicitly have the "REST services User" profile to be able to use the API.

    Check this page of the documentation for more information.

    So long story short, yes it's normal, it was to enforce security of the application. :)

    Guillaume

     
  • LeoHenry

    LeoHenry - 2024-10-13

    If you're getting that REST API error, it usually means you need to assign the proper permissions to the user profile. I had a similar issue while working on a Revo repairs project—updating the user roles fixed it quickly!

     

    Last edit: LeoHenry 2024-10-13

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.