Skip to main content

User

User is an input used to reference users that exist in Port.

💡 Common user usage​

The user input type can be used to reference any user that exists in Port, for example:

  • The code owners
  • The current on-call
  • The lead maintainer

In the live demo self-service hub page, we can see the change on-call action whose On-Call input is a user input. 🎬

API definition​

{
"myUserInput": {
"title": "My user input",
"icon": "My icon",
"description": "My user input",
"type": "string",
"format": "user",
"default": "me@example.com"
}
}

Check out Port's API reference to learn more.

Terraform definition​

resource "port_action" "myAction" {
# ...action properties
user_properties = {
string_props = {
"myUserInput" = {
title = "My user input"
description = "My user input"
format = "user"
default = "me@example.com"
}
}
}
}