GDAP API: User Registration


This article is describing our current GDAP API endpoint parameters, payloads and which call methods to use for specific tasks, and how to combine these workflows in C# implementation.

Resource Links

Swagger UI -

Base URL:


API: User Registration
Method: POST


Key Value Description
email Your AAD email address here
firstname Helmuts Your firstname here
lastname Reinis Your lastname here


JSON Response 1 (If access is already registered) :

    "Message""It appears that this account is already registered:"

JSON Response 2 (Account with no prior association):

    "Message""Expect an email in your inbox with more information:"


C# Method Example:

public async Task<string> NewUserRegistration(string baseUrl, string Username, string FirstName, string LastName)
string uri = $"{baseUrl}UserRegistration?email={Username}&firstname={FirstName}&lastname={LastName}";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.Method = "POST";
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
using (HttpWebResponse response = (HttpWebResponse)await request.GetResponseAsync())
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
return await reader.ReadToEndAsync();

Calling this method from code:

var RegistrationResult = await loginAPI.NewUserRegistration(CurrentBaseUrl, Username, FirstName, LastName);

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.