Skip to content

Commit 7855333

Browse files
authored
Fix the table microsoft365_user to populate all column value correctly and optimized the table performance by making API call based on the select statements (#68)
1 parent 0e789ec commit 7855333

2 files changed

Lines changed: 229 additions & 34 deletions

File tree

docs/tables/microsoft365_group.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,9 @@ Microsoft 365 Groups are collections of users that can be used to manage access
1111

1212
The `microsoft365_group` table provides insights into group management and configuration across your Microsoft 365 tenant. As a Microsoft 365 administrator, explore group details through this table to understand group types, membership rules, mail settings, and security configurations. Utilize it to audit group permissions, track group creation and expiration, and monitor group compliance.
1313

14-
**Important Notes**
15-
16-
- This table requires Microsoft Graph API permissions for reading group information
17-
- Data includes all groups in the tenant (excluding dynamic distribution groups)
18-
- Some fields may be null for certain group types
19-
- Dynamic membership rules are supported for security groups
20-
2114
## Examples
2215

2316
### Basic group overview
24-
2517
Explore all groups in your organization with their basic information.
2618

2719
```sql+postgres
@@ -57,7 +49,6 @@ order by
5749
```
5850

5951
### Microsoft 365 groups analysis
60-
6152
Analyze Microsoft 365 groups (unified groups) in your organization.
6253

6354
```sql+postgres
@@ -97,7 +88,6 @@ order by
9788
```
9889

9990
### Security groups with dynamic membership
100-
10191
Find security groups that use dynamic membership rules.
10292

10393
```sql+postgres
@@ -133,7 +123,6 @@ order by
133123
```
134124

135125
### Mail-enabled groups analysis
136-
137126
Analyze mail-enabled groups and their configuration.
138127

139128
```sql+postgres
@@ -173,7 +162,6 @@ order by
173162
```
174163

175164
### Group type distribution
176-
177165
Analyze the distribution of different group types in your organization.
178166

179167
```sql+postgres
@@ -215,7 +203,6 @@ order by
215203
```
216204

217205
### Groups with external senders allowed
218-
219206
Find groups that allow external users to send messages.
220207

221208
```sql+postgres
@@ -251,7 +238,6 @@ order by
251238
```
252239

253240
### Groups with assigned licenses
254-
255241
Find groups that have licenses assigned to them.
256242

257243
```sql+postgres
@@ -285,7 +271,6 @@ order by
285271
```
286272

287273
### Recently created groups
288-
289274
Find groups created in the last 30 days.
290275

291276
```sql+postgres
@@ -323,7 +308,6 @@ order by
323308
```
324309

325310
### Groups with expiration dates
326-
327311
Find groups that have expiration dates set.
328312

329313
```sql+postgres
@@ -357,7 +341,6 @@ order by
357341
```
358342

359343
### On-premises synchronized groups
360-
361344
Find groups that are synchronized from on-premises Active Directory.
362345

363346
```sql+postgres
@@ -393,7 +376,6 @@ order by
393376
```
394377

395378
### Groups with provisioning errors
396-
397379
Find groups that have on-premises or service provisioning errors.
398380

399381
```sql+postgres
@@ -429,21 +411,18 @@ order by
429411
## Troubleshooting
430412

431413
### Authentication Issues
432-
433414
If you encounter authentication errors:
434415

435416
1. **Verify Permissions**: Ensure the authenticated user has appropriate Microsoft Graph API permissions
436417
2. **Check Scopes**: Verify that the required scopes for group management are granted
437418
3. **Admin Consent**: Some data may require admin consent for the application
438419

439420
### Common Error Messages
440-
441421
- **403 Forbidden**: The user lacks permissions to read group data
442422
- **401 Unauthorized**: Authentication token is invalid or expired
443423
- **Connection Error**: Check network connectivity and authentication configuration
444424

445425
### Filtering by Group Types
446-
447426
The table supports filtering by group types using the `group_types` column:
448427

449428
- **Microsoft 365 Groups**: `group_types = '["Unified"]'`

0 commit comments

Comments
 (0)