Sorry Jean, but agents are not attached to policies normally - you usually record based on a queue or other parameters. You can use the Recording API or CLI and filter for "forUser" then get the users in those policies, but it will be the GUID of the users, not their names.
------------------------------
Robert Wakefield-Carl
TTEC Digital, LLC fka Avtex Solutions, LLC
Contact Center Innovation Architect
https://www.ttecDigital.comhttps://RobertWC.Blogspot.com------------------------------