Last active
October 22, 2017 12:02
-
-
Save danmusk/2951580c624a7cdce027ea1d83b7c4ab to your computer and use it in GitHub Desktop.
Auth0 update appMetadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var managementApiClient = new ManagementApiClient("yourManagementToken", new Uri("https://@@tenant@@.auth0.com/api/v2")); | |
dynamic appMetadata = new ExpandoObject(); | |
appMetadata.Roles = new string[] { "Administrator", "ApplicationOwner" }; | |
appMetadata.TenantId = 154; | |
managementApiClient.Users.UpdateAsync("userId", new UserUpdateRequest() | |
{ | |
Connection = "Your-Connection", | |
AppMetadata = appMetadata | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What should 'Your-Connection' point to? I have real trouble finding documentation