Enforce naming conventions
AI translated from the German original
Define how the display name, email address and site URL are built.
Naming conventions help IT administrators and users:
- assign workspaces to an area
- recognise their purpose
- find them more easily
With rules for display name, email address and site URL, you enforce your requirements consistently per template.
Common naming conventions
Section titled “Common naming conventions”These patterns are often used in practice:
| Rule | Result | |
|---|---|---|
| Display name | {{name}} |
Marketing |
| Email address | org-{{name}} |
org-marketing@contoso.com |
| Site URL | …/sites/org-marketing or …/teams/org-marketing |
| Rule | Result | |
|---|---|---|
| Display name | {{projectCode}} - {{name}} |
26016 - ERP rollout |
| Email address | {{projectCode}} |
26016@contoso.com |
| Site URL | …/sites/26016 or …/teams/26016 |
| Rule | Result | |
|---|---|---|
| Display name | {{customerNumber}} - {{customer}} |
10234 - Example Ltd |
| Email address | cst-{{customerNumber}} |
cst-10234@contoso.com |
| Site URL | …/sites/cst-10234 or …/teams/cst-10234 |
Set up a naming convention
Section titled “Set up a naming convention”-
Open Groups → Templates → organisation → template → Naming.
-
Under Display name format, enter
{{name}}.{{name}}is the name the user enters. -
Under Group email and site-url format, enter
org-{{name}}. -
Save the template.
-
Open Groups → Templates → organisation → template → Naming.
-
Under Custom fields, click Add field and enter:
- Name: Project code
- Hint: Enter the 5-digit project code.
- Validation:
^[0-9]{5}$
The key
projectCodeis generated from the name. -
Under Display name format, enter
{{projectCode}} - {{name}}. -
Under Group email and site-url format, enter
{{projectCode}}. -
Save the template.
-
Open Groups → Templates → organisation → template → Naming.
-
Under Custom fields, click Add field and enter:
- Name: Customer number
- Hint: Enter the 5-digit customer number.
- Validation:
^[0-9]{5}$
-
Add a second field:
- Name: Customer
- Hint: Enter the customer name.
-
Under Display name format, enter
{{customerNumber}} - {{customer}}. -
Under Group email and site-url format, enter
cst-{{customerNumber}}. -
Save the template.
Recommendations
Section titled “Recommendations”- Define the email address and site URL carefully before use. Owners and admins can change the display name later.
- Separate placeholders with
-or brackets. Otherwise Microsoft 365 search does not reliably find partial terms. - Keep site URLs short. Long paths hit limits with OneDrive sync.
- Use a prefix such as
prj-. This lets you recognise the template in the Microsoft admin centers. - Use only lowercase letters, numbers, hyphens and dots for email address and URL.