# Self Service API - Display Name

**URL:** <https://community.icinga.com/t/self-service-api-display-name/7593>\
**Category:** Icinga Director\
**Tags:** self-service, api\
**Created:** [June 16, 2021, 1:25pm UTC](https://community.icinga.com/t/self-service-api-display-name/7593 "2021-06-16T13:25:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AlexR](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@AlexR](https://community.icinga.com/u/AlexR)\
**Post date:** [June 24, 2021, 5:40pm UTC](https://community.icinga.com/t/self-service-api-display-name/7593/2 "2021-06-24T17:40:28Z")

</div>

Hi @Figment!  
I guess I’m having the same problem - see post [Icinga PowerShell Framework - Using hostname as display\_name (without domain)](https://community.icinga.com/t/icinga-powershell-framework-using-hostname-as-display-name-without-domain/6074)

For us the hostname is correctly set to FQDN (as set in the host template “Self Service API - Global Settings”).  
Unfortunately the field display\_name is not set at all which should be the local part of the hostname (i.e. without the domain part).  
As long as we’ve used the old “PowerShell Module” (deprecated) the display\_name variable was automatically set to the shortname.

We’re currently using the following parameters with PowerShell Framework:

```auto
	$AgentInstallParams = @{
			"SelfServiceAPIKey" = $SelfServiceAPIKey;
			"UseDirectorSelfService" = 1;
			"lowercase" = 1;
			"DirectorUrl" = 'http://icingamaster1.domain.net/icingaweb2/director';
			"OverrideDirectorVars" = 0;
			"ConvertEndpointIPConfig" = 0;
			"CAEndpoint" = "icingamaster1.domain.net";
			"CAPort" = 5665;
			"Ticket" = '';
			"EmptyTicket" = 1;
			"AgentVersion" = $appVersion;
			"Endpoints" = $ParentEndpoints;
			"ParentZone" = $ParentZone;
			"AllowVersionChanges" = 1;
			"InstallFrameworkPlugins" = 1;
			"InstallFrameworkService" = 0;
			"PluginsUrl" = "$dirFiles\icinga-powershell-plugins-1.3.0.zip";
			"PackageSource" = "$dirFiles";
			"ServiceUser" = "LocalSystem"
			}
	 
	Start-IcingaAgentInstallWizard @AgentInstallParams -RunInstaller

```

How do others manage the display name with Icinga Director API?  
Is it necessary to create a feature request for PowerShell Framework?

Regards,  
AlexR

---

_[View the full topic](https://community.icinga.com/t/self-service-api-display-name/7593)._
