How to get user related data with Generic Interface?

English! place to talk about OTRS development, programming and coding

Moderator: tto

Post Reply
artgrohe
OTRS newbie
Posts: 5
Joined: 16 Oct 2018, 13:15
OTRS Version?: 3.x - 6.x

How to get user related data with Generic Interface?

Post by artgrohe » 20 Oct 2018, 09:40

Hi,
I wonder how to get User Data with Generic Interface. It seems that there is no Controller to get User Data...
these are the only controllers:
Screen Shot 2018-10-20 at 09.35.19.png
So how can I add user methods to my webservices?
I tried adding a User section in my webservice.yml and reimported it:

Code: Select all

    User:
      Description: Search for User Data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Kernel::System::User
but that didn't work.
Since the generic interface replaces the deprecated RPC.pl API, it should have at least the same set of methods.
Otherwise this would'nt be an improvement of the API right?
You do not have the required permissions to view the files attached to this post.

jojo
Moderator
Posts: 14390
Joined: 26 Jan 2007, 14:50
OTRS Version?: Git Master
Contact:

Re: How to get user related data with Generic Interface?

Post by jojo » 20 Oct 2018, 09:57

In OTRS 5 and 6 you would need to develop an additional Backend Module first to expose the needed API part to the GenericInterface. In OTRS 7 there will be the full set of OTRS API through Generic Interface
"Production": OTRS™ 6, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com :: Share your ideas

Post Reply