How do I filter our users with user role using ISHRemote?

Hi,

I have used https://gateway.rws.com/csm?id=kb_article_view&sysparm_article=KB0024114 to get list of all users and their last login date.

I would now like to filter this list to only include users who have a certain user role associated with their account.

I have been tinkering with something like

$user = Get-IshUser -IshSession $ishSession -IshObject $ishUser -RequestedMetadata $requestedMetadata | Where-Object -Property IshUserRoles -Contains -Value "VUSERROLETRANSLATOR" 

which I know is incorrect as the FISHUSERROLES property/attribute of an ISHUser is based on ISHLov datatype.

Can anyone advise how I filter the returned list of users to only include those with a certain user role associated with their account?

Thanks in advance,

Ann

emoji