private static void ListDomainPermissionsForAgency(IamClient iamClient)
        {
            var listPermissionsForAgencyOnDomainRequest = new ListDomainPermissionsForAgencyRequest()
            {
                DomainId = "",
                AgencyId = ""
            };

            try
            {
                var listPermissionsForAgencyOnDomainResponse =
                    iamClient.ListDomainPermissionsForAgency(listPermissionsForAgencyOnDomainRequest);
                foreach (var role in listPermissionsForAgencyOnDomainResponse.Roles)
                {
                    Console.WriteLine(JsonConvert.SerializeObject(role));
                }
            }
            catch (RequestTimeoutException requestTimeoutException)
            {
                Console.WriteLine(requestTimeoutException.ErrorMessage);
            }
            catch (ServiceResponseException clientRequestException)
            {
                Console.WriteLine(clientRequestException.HttpStatusCode);
                Console.WriteLine(clientRequestException.ErrorCode);
                Console.WriteLine(clientRequestException.ErrorMsg);
            }
            catch (ConnectionException connectionException)
            {
                Console.WriteLine(connectionException.ErrorMessage);
            }
        }