Okta.Sdk.Api.DirectoriesIntegrationApi

October 22, 2025 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
UpdateADGroupMembershipPOST /api/v1/directories/{appInstanceId}/groups/modifyUpdate 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

NameTypeDescriptionNotes
appInstanceIdstringID of the Active Directory app instance in Okta
agentActionAgentAction

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
403Forbidden-
404Not Found-
502There are no connected agents.-
504Timed out waiting for agent-

[Back to top] [Back to API list] [Back to Model list] [Back to README]