Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the columns about user identity Job Information and On-premises information #210

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Dec 18, 2024

Example query results

Results
> select * from azuread_user where title = 'Hellor'
{
 "columns": [
  {
   "name": "tenant_id",
   "data_type": "text"
  },
  ....
 ],
 "rows": [
  {
   "_ctx": {
    "connection_name": "azuread",
    "steampipe": {
     "sdk_version": "5.10.4"
    }
   },
   "account_enabled": true,
   "company_name": "My Own",
   "created_date_time": "2019-07-19T17:27:34+05:30",
   "department": "IT",
   "display_name": "Hellor",
   "employee_hire_date": "2019-02-14T00:00:00+05:30",
   "employee_id": "022",
   "employee_type": "Permanent",
   "filter": null,
   "given_name": "Hellor",
   "id": "06fd46b0-a867-49a1-a4f1-f7768465caba",
   "im_addresses": [],
   "job_title": "E-gineer",
   "mail": null,
   "mail_nickname": "Hellor",
   "manager": null,
   "member_of": [
    {
     "@odata.type": "#microsoft.graph.directoryRole",
     "id": "f48b5c11-744d-42bf-8acc-57a665c600b4"
    },
    {
     "@odata.type": "#microsoft.graph.group",
     "id": "293a8d51-3a6f-4073-b703-64175a9fc078"
    },
    {
     "@odata.type": "#microsoft.graph.directoryRole",
     "id": "72971a1d-dea5-42f7-b600-68270ce5e939"
    },
    {
     "@odata.type": "#microsoft.graph.group",
     "id": "340aa4f9-fa98-47d1-8770-b88e3b307c3a"
    }
   ],
   "office_location": "Space",
   "on_premises_distinguished_name": null,
   "on_premises_domain_name": null,
   "on_premises_immutable_id": null,
   "on_premises_last_sync_date_time": null,
   "on_premises_sam_account_name": null,
   "on_premises_security_identifier": null,
   "on_premises_sync_enabled": null,
   "on_premises_user_principal_name": null,
   "other_mails": [],
   "password_policies": null,
   "password_profile": null,
   "sign_in_sessions_valid_from_date_time": "2024-12-05T13:16:55+05:30",
   "sp_connection_name": "azuread",
   "sp_ctx": {
    "connection_name": "azuread",
    "steampipe": {
     "sdk_version": "5.10.4"
    }
   },
   "surname": null,
   "tenant_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
   "title": "Hellor",
   "usage_location": null,
   "user_principal_name": "[email protected]",
   "user_type": "Member"
  }
 ],
 "metadata": {
  "duration_ms": 3377,
  "scans": [
   {
    "connection": "azuread",
    "table": "azuread_user",
    "cache_hit": false,
    "rows_fetched": 53,
    "hydrate_calls": 53,
    "start_time": "2024-12-18T13:24:16+05:30",
    "duration_ms": 3342,
    "columns": [
     "employee_type",
     "given_name",
     "created_date_time",
    ...
    ],
    "quals": [
     {
      "column": "title",
      "operator": "=",
      "value": "Hellor"
     }
    ]
   }
  ],
  "scan_count": 1,
  "rows_returned": 0,
  "uncached_rows_fetched": 53,
  "cached_rows_fetched": 0,
  "hydrate_calls": 53,
  "connection_count": 1
 }
}

@ParthaI ParthaI requested a review from misraved December 18, 2024 08:02
@ParthaI ParthaI self-assigned this Dec 18, 2024
@ParthaI ParthaI linked an issue Dec 18, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for identity attributes in azuread_user table
1 participant