I am trying to get a list of roles that a user is belonging to via SOAP. According to the definition at http://dev.otrs.org/ Kernel::System::Group::GroupUserRoleMemberList() the result should be like this:
This is the function I am using:Result: HASH -> returns a hash of key => group id, value => group name
$GroupObject->GroupUserRoleMemberList(
UserID => $ID,
Result => 'HASH',
);
The userID I am using is '3'.
The role ID in OTRS is 1, 2 and 3.
When recursively printing the result it looks like this: Array ( [s-gensym3] => 1 [s-gensym5] => 3 [s-gensym7] => 3 [s-gensym9] => 3 [s-gensym11] => 2 [s-gensym13] => 3 )
There are no names. I do understand that it is the user ID I'm getting.
How should I do in order to get the names? Or should I consider the text at http://dev.otrs.org/ to be incorrect and the result that I get is what I will get and nothing else? Or is the text correct and we have a bug?
/Niklas