Okta.Sdk.Api.DirectoriesIntegrationApi
October 22, 2025 ยท View on GitHub
All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| UpdateADGroupMembership | POST /api/v1/directories/{appInstanceId}/groups/modify | Update an Active Directory group membership |
UpdateADGroupMembership
void UpdateADGroupMembership (string appInstanceId, AgentAction agentAction)
Update an Active Directory group membership
Updates an Active Directory group membership directly in Active Directory > Note: See Before you begin: Active Directory integration with the following setup in the Use Okta Access Certifications to manage AD group membership product documentation.
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateADGroupMembershipExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new DirectoriesIntegrationApi(config);
var appInstanceId = "appInstanceId_example"; // string | ID of the Active Directory app instance in Okta
var agentAction = new AgentAction(); // AgentAction |
try
{
// Update an Active Directory group membership
apiInstance.UpdateADGroupMembership(appInstanceId, agentAction);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DirectoriesIntegrationApi.UpdateADGroupMembership: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| appInstanceId | string | ID of the Active Directory app instance in Okta | |
| agentAction | AgentAction |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 502 | There are no connected agents. | - |
| 504 | Timed out waiting for agent | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]