okta / okta-sdk-php

PHP SDK for the Okta API
Apache License 2.0
38 stars 71 forks source link

User IT - Update User Profile #25

Closed bretterer closed 4 years ago

bretterer commented 7 years ago
  1. Create user with credentials → POST /api/v1/users?activate=false
    const newUser = {
    profile: {
        firstName: 'John',
        lastName: 'Profile-Update',
        email: 'john-profile-update@example.com',
        login: 'john-profile-update@example.com'
    },
    credentials: {
        password: { value: 'Abcd1234' }
    }
    };
  2. Update the user's profile by adding a nickname → PUT /api/v1/users/{{userId}} user.profile.nickName = 'Batman';
  3. Verify that user profile is updated by calling get on the user → GET /api/v1/users/{{userId}}
  4. Deactivate & delete the user → POST /api/v1/users/{{userId}}/lifecycle/deactivate + DELETE /api/v1/users/{{userId}}