[API] edit and create user through API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maarten
    Member
    • Jun 2020
    • 56

    [API] edit and create user through API

    Hi all,

    I am currently testing creating and editing User records through the API, but using the Basic authentication of an admin user.

    I would like to use HMAC or API authentication, but these seem unable to edit and create (only read) the User entity.

    Are there ways to change this behavior, and to use the more secure authentication mechanisms to edit and create users through API?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi Maarten,

    I'd recommend creating a custom API endpoint for your need. A route and an action class for it. Then handle access control there somehow.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Another solution would be utilizing a workflow with a formula script.

      E.g. an API user creates some record (e.g. UserChangeAction) that triggers a workflow rule that changes a user. A user ID is passed as a Link field.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...