diff --git a/samples/packages/admin-export/src/main/kotlin/com/atlan/pkg/ae/exports/Users.kt b/samples/packages/admin-export/src/main/kotlin/com/atlan/pkg/ae/exports/Users.kt index 86c433af7a..7ad45549a0 100644 --- a/samples/packages/admin-export/src/main/kotlin/com/atlan/pkg/ae/exports/Users.kt +++ b/samples/packages/admin-export/src/main/kotlin/com/atlan/pkg/ae/exports/Users.kt @@ -41,8 +41,8 @@ class Users( .column("profileRoleOther") .build() ctx.client.users.list(request).forEach { user -> - val personas = user.personas?.joinToString("\n") { it.displayName } ?: "" - val groups = ctx.client.users.listGroups(user.id)?.records?.joinToString("\n") { it.name } ?: "" + val personas = user.personas?.joinToString("\n") { it.displayName ?: "" } ?: "" + val groups = ctx.client.users.listGroups(user.id)?.records?.joinToString("\n") { it.name ?: "" } ?: "" val designation = if (user.attributes?.profileRole?.get(0) == "Other") { user.attributes?.profileRoleOther?.get(0)