Hi @John Hirst
You can use below command to get object id of the service prinicpal:
Get-AzureADServicePrincipal -SearchString display_name_of_the_app
Use below cmdlet to get list of all users assigned to the application:
Get-AzureADServiceAppRoleAssignment -ObjectId object_id_from_above_cmdlet
-----------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.