Creating Guest Users Automatically | Teamsware

πŸ‘₯ Creating and Maintaining Guest Users Automatically

With the "Invite guest user" and "Update AAD user details" actions you create external users in Entra ID and keep their data up to date – in line with your IT requirements and without manual rework.

Guests in projects are everyday business: planners, reviewers, subcontractors or clients need access to specific content. When these accounts are created manually, inconsistent display names, missing details and forgotten access quickly pile up. Two actions take that work off your hands.

🎯 At a Glance

Invite guest user creates an external user in Entra ID – with a consistent display name, the right invitation email and a defined landing page.

Update AAD user details then adds and updates the remaining user information – automatically, on creation as well as on change.

Maintained in a central list, both actions become the single control point for all external access.

πŸ’‘ The basic idea

Invite guest user answers: "How does the guest get into the directory in the first place?"

Update AAD user details answers: "How do their details stay complete and current?"

The central list answers: "Who exactly have we invited – and is the access still needed?"

πŸ‘€ What does "Invite guest user" do?

This action creates an external user in Entra ID without opening the Azure portal. Your IT department's requirements can be built straight into the action:

  • The scheme by which the display name is composed
  • Which invitation email the guest receives
  • Which landing page they are directed to after signing in

The result is guest accounts that match the in-house standard from the outset – regardless of who creates them.

πŸ“· [Screenshot: configuration of the "Invite guest user" action]

πŸ”„ What does "Update AAD user details" do?

An invited guest starts out as little more than an account with an email address and a display name. Everything else – company, role, phone number, department – is missing. This is where the second action comes in: it enters that information automatically and updates it when needed.

The benefit shows most clearly with a central contact list: when an entry changes there, the action carries the change through – without anyone maintaining the directory in parallel. Whether a record is newly created or updated makes no difference.

πŸ“· [Screenshot: configuration of the "Update AAD user details" action]

βš™οΈ Triggered action or user action?

Both routes reach the same goal – they differ in who triggers the action and which rights are required.

CriterionTriggered actionUser action
TriggeringAutomatically when a record is created or changedManually by the person using it
Required rightsNo special rights needed by the usersThe executing person needs a role with permission to invite guests
Permissions & assignmentsNot immediately – a follow-up process with notification is requiredCan be set directly in the same step
Suited forList-driven bulk maintenance, central contact listsIndividual invitations by authorised people

⚠️ Common pitfall

If someone runs the user action without holding a role that permits inviting guests, the action fails with an error. In that case the triggered action is the better route: it runs independently of the user's own rights.

The trade-off: permissions and assignments cannot be set in the same step. Instead you add a follow-up process with a notification – automated, this usually takes only a few minutes.

πŸ’» What does the configuration look like?

To keep all guest accounts named consistently, the display name is composed by script. The following example builds it from a prefix, first name, last name and the domain of the email address:

Script {Function} – building the display name

var Email = [[EMail]];
var Nachname = [[Lastname]];
var Vorname = [[FirstName]];
var Domain = Email.split("@")[1];
var PrefixValues = [[TW_PrefixValues]];
var AzureName = `${PrefixValues} ${Vorname} ${Nachname} | ${Domain}`;
if ([[TW_UserAccount]]!="") {
  var AzureName = [[TW_UserAccount.Title]];
}
return AzureName;

Result: EXT – Bernd Bauleitung | digitalebauakte.eu

If a user account is already linked, the script keeps its existing title – so an existing entry is not overwritten.

The resulting display name is then passed to the action together with the email address:

Passing values to the action

In the triggered action:

JSON.stringify({Email: [[EMail]], DisplayName: [[@Variables.AzureDisplayName]]})

In the user action:

{Email: [[EMail]], DisplayName: [[@Variables.AzureDisplayName]]}

πŸ“· [Screenshot: triggered action with script and value passing]

πŸ“· [Screenshot: user action with parameters]

🎯 Positioning for everyday use

🎯 Teamsware recommendation

Maintain external contacts in a central list and let both actions work from there. That gives you a single place showing who has been invited and with which details.

  • βœ… Standardise display names by script – guests then remain identifiable as external at a glance in the directory.
  • βœ… Review access regularly: based on the central list, build a process that asks the guest after six months whether the access is still needed. Accounts that are no longer required are reliably spotted instead of quietly persisting for years.
  • βœ… Choose the triggered action when the people using it have no invitation rights – and handle the rights assignment through a notified follow-up process.
  • ⚠️ Avoid guest accounts created manually in the portal – they bypass the naming convention and the overview.

πŸ’‘ Quick reminder

Invite guest user = let them in

Update AAD user details = complete and keep current

Central list = keep the overview

⚠️ Avoid these common mistakes

  • Letting the user action be run by people who have no permission to invite guests
  • Creating guest accounts manually in the portal and thereby bypassing the naming convention
  • Only inviting but never completing the remaining user details – leaving the directory patchy
  • Keeping no central list and losing the overview of existing guest access
  • Never reviewing guest access, so accounts that are no longer needed persist indefinitely
  • Overwriting existing user accounts with a newly generated display name

Teamsware GmbH · Leopoldstraße 31 · 80802 München · www.teamsware.eu