Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-10-14 14:46:17 +02:00
parent 4630d39381
commit fc5150de41
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ description: Importing users and groups from a Microsoft Azure Active Directory
---
The Backstage catalog can be set up to ingest organizational data - users and
teams - directly from an tenant in Microsoft Azure Active Directory via the
teams - directly from a tenant in Microsoft Azure Active Directory via the
Microsoft Graph API.
More details on this are available in the
@@ -167,12 +167,12 @@ function trackProgress(logger: Logger) {
// Makes sure that emitted entities have a proper location based on their uuid
function withLocations(providerId: string, entity: Entity): Entity {
const dn =
const uuid =
entity.metadata.annotations?.[MICROSOFT_GRAPH_USER_ID_ANNOTATION] ||
entity.metadata.annotations?.[MICROSOFT_GRAPH_GROUP_ID_ANNOTATION] ||
entity.metadata.annotations?.[MICROSOFT_GRAPH_TENANT_ID_ANNOTATION] ||
entity.metadata.name;
const location = `msgraph:${providerId}/${encodeURIComponent(dn)}`;
const location = `msgraph:${providerId}/${encodeURIComponent(uuid)}`;
return merge(
{
metadata: {