You can use IRepositoryItemService.fetchItem() to get the real item (IContributor) for a handle (IContributorHandle). And then you can get the userId from IContributor.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.