okta / okta-sdk-php

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

User IT - Get User #23

Closed bretterer closed 5 years ago

bretterer commented 7 years ago
  1. Create user with credentials → POST /api/v1/users?activate=false
    const newUser = {
    profile: {
        firstName: 'John',
        lastName: 'Get-User',
        email: 'john-get-user@example.com',
        login: 'john-get-user@example.com'
    },
    credentials: {
        password: { value: 'Abcd1234' }
    }
    };
  2. Get the user by ID → GET /api/v1/users/{{userId}}
  3. Get the user by login name → GET /api/v1/users/{{login}}
  4. Deactivate & delete the user → POST /api/v1/users/{{userId}}/lifecycle/deactivate + DELETE /api/v1/users/{{userId}}
  5. Verify that the user is deleted by calling get on user (Exception thrown with 404 error message) → GET /api/v1/users/{{userId}}