@@ -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
|
||||
|
||||
+2
-2
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user