You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Update-EntraBetaInvitedUserSponsorsFromInvitedBy` cmdlet updates the sponsors for invited users based on the inviter's information in Microsoft Entra ID.
36
+
The `Update-EntraBetaInvitedUserSponsorsFromInvitedBy` cmdlet updates the Sponsors attribute to include the user who initially invited them to the tenant using the InvitedBy property. This script can be used to backfill Sponsors attribute for existing users.
37
37
38
38
The calling user must be assigned at least one of the following Microsoft Entra roles:
39
39
@@ -42,16 +42,25 @@ The calling user must be assigned at least one of the following Microsoft Entra
42
42
43
43
## Examples
44
44
45
-
### Example 1: Update sponsors for a specific guest user
45
+
### Example 1: Enumerate all invited users in the Tenant and update Sponsors using InvitedBy value
46
+
47
+
```powershell
48
+
Connect-Entra -Scopes 'User.ReadWrite.All'
49
+
Update-EntraBetaInvitedUserSponsorsFromInvitedBy
50
+
```
51
+
52
+
Enumerate all invited users in the Tenant and update Sponsors using InvitedBy value
53
+
54
+
### Example 2: Update sponsors for a specific guest user
The `Update-EntraInvitedUserSponsorsFromInvitedBy` cmdlet updates the sponsors for invited users based on the inviter's information in Microsoft Entra ID.
36
+
The `Update-EntraInvitedUserSponsorsFromInvitedBy` cmdlet updates the Sponsors attribute to include the user who initially invited them to the tenant using the InvitedBy property. This script can be used to backfill Sponsors attribute for existing users.
37
37
38
38
The calling user must be assigned at least one of the following Microsoft Entra roles:
39
39
@@ -42,16 +42,25 @@ The calling user must be assigned at least one of the following Microsoft Entra
42
42
43
43
## Examples
44
44
45
-
### Example 1: Update sponsors for a specific guest user
45
+
### Example 1: Enumerate all invited users in the Tenant and update Sponsors using InvitedBy value
46
+
47
+
```powershell
48
+
Connect-Entra -Scopes 'User.ReadWrite.All'
49
+
Update-EntraInvitedUserSponsorsFromInvitedBy
50
+
```
51
+
52
+
Enumerate all invited users in the Tenant and update Sponsors using InvitedBy value
53
+
54
+
### Example 2: Update sponsors for a specific guest user
0 commit comments