How to query [me] and [mygroups] with a sql table in the SCSM Portal
Hi,
i want to create a sql query which shows all the workitems (standard and one of our third party workitems) of the current user and his groups where one of these are in the assignedTo Relationship.
In the Service Management DB from Cireson i dont know how to get these information.
And how is it possible to use OData for workitem queries ?
regards,
Jan
Answers
@Jan_Schulz we are referring to @UserID token in our query showing all hardware assets where logged in user is Primary User.
You can find more information here:
@Peter_Miklian thank you for the answer. Yes i know the @UserID but i dont know how to get [mygroups] like the token in the Service Manager. Is there a solution in the Cireson portal to determine group membership as in the SCSM Console?
In portal you may be able to use Cireson API, e.g. https://support.cireson.com/Help/Api/GET-api-V3-User-GetUsersGroups_id
I didn't look into MS SQL tables, maybe someone from Cireson team could advise you.
thank you for the api hint.
I'll see if I can find out anything else