How to get user related data with Generic Interface?

English! place to talk about development, programming and coding
Post Reply
artgrohe
Znuny newbie
Posts: 5
Joined: 16 Oct 2018, 13:15
Znuny Version: 3.x - 6.x

How to get user related data with Generic Interface?

Post by artgrohe »

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
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

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

Post by jojo »

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™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply