Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

tetsuo13/Kudos-dotnet

Repository files navigation

Kudos Dot Net

Build status NuGet

Kudos Dot Net is a .NET client for the SCIM User Provisioning API in Kudos.

The Kudos API documentation can be found on your company's instance at https://your_company_name.kudosnow.com/api_docs/scim

Installation

Kudos Dot Net can be installed via the NuGet UI (as Kudos) or via the NuGet package manager console:

PM> Install-Package Kudos

Usage

You'll need an Authorization Token before you can use this library. An administrator account can get it at https://your_company_name.kudosnow.com/admin/api/

using Kudos;
...
IKudosApi kudos = new KudosApi(AuthorizationToken);

Users

Get a list of all users in the organization:

Users users = await kudos.GetUsersAsync();

Get a single user:

User user = await kudos.GetUserAsync(42);

Create a new user. The only requirement is that the User.UserName (their email address) is set.

User newUser = new User()
{
    UserName = "foo@your-company-name.com"
};
User response = await kudos.CreateUserAsync(newUser);

Update an existing user:

UpdateUser update = new UpdateUser()
{
    Kudos = new Kudos.Models.Extensions.UpdateKudosExtension()
    {
        DateOfBirth = new DateTime(1966, 3, 17)
    }
};
User result = await kudos.UpdateUserAsync(42, update);

Delete an existing user.

await kudos.DeleteUser(42);

Groups

Get a list of all groups in the organization:

Groups groups = await kudos.GetGroupsAsync();

Get a single group:

Group group = await kudos.GetGroupAsync(42);

Delete an existing group:

await kudos.DeleteGroupAsync(42);

Endpoints Missing

  • Groups
    • Create
    • Update

Note: The SCIM User Provisioning API in Kudos provides the ability to replace an existing user or group (using PATCH) but that's been omitted on purpose in favor of the corresponding update call.

About

.NET client for the SCIM User Provisioning API in Kudos

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages