GetUsers
Use this data source to retrieve a list of users from Okta.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Okta.User.GetUsers.InvokeAsync(new Okta.User.GetUsersArgs
{
Searches =
{
new Okta.User.Inputs.GetUsersSearchArgs
{
Comparison = "sw",
Name = "profile.company",
Value = "Articulate",
},
},
}));
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.user.get_users(searches=[{
"comparison": "sw",
"name": "profile.company",
"value": "Articulate",
}])import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = pulumi.output(okta.user.getUsers({
searches: [{
comparison: "sw",
name: "profile.company",
value: "Articulate",
}],
}, { async: true }));Using GetUsers
function getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>function get_users(searches=None, users=None, opts=None)func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)public static class GetUsers {
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Searches
List<Get
Users Search Args> Map of search criteria to use to find users. It supports the following properties.
- Users
List<Get
Users User Args> collection of users retrieved from Okta with the following properties.
- Searches
[]Get
Users Search Map of search criteria to use to find users. It supports the following properties.
- Users
[]Get
Users User collection of users retrieved from Okta with the following properties.
- searches
Get
Users Search[] Map of search criteria to use to find users. It supports the following properties.
- users
Get
Users User[] collection of users retrieved from Okta with the following properties.
- searches
List[Get
Users Search] Map of search criteria to use to find users. It supports the following properties.
- users
List[Get
Users User] collection of users retrieved from Okta with the following properties.
GetUsers Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Searches
List<Get
Users Search> - Users
List<Get
Users User> collection of users retrieved from Okta with the following properties.
- Id string
The provider-assigned unique ID for this managed resource.
- Searches
[]Get
Users Search - Users
[]Get
Users User collection of users retrieved from Okta with the following properties.
- id string
The provider-assigned unique ID for this managed resource.
- searches
Get
Users Search[] - users
Get
Users User[] collection of users retrieved from Okta with the following properties.
- id str
The provider-assigned unique ID for this managed resource.
- searches
List[Get
Users Search] - users
List[Get
Users User] collection of users retrieved from Okta with the following properties.
Supporting Types
GetUsersSearch
GetUsersUser
- Admin
Roles List<string> Administrator roles assigned to user.
- City string
user profile property.
- Cost
Center string user profile property.
- Country
Code string user profile property.
- Custom
Profile stringAttributes raw JSON containing all custom profile attributes.
- Department string
user profile property.
- Display
Name string user profile property.
- Division string
user profile property.
- Email string
user profile property.
- Employee
Number string user profile property.
- First
Name string user profile property.
- Group
Memberships List<string> user profile property.
- Honorific
Prefix string user profile property.
- Honorific
Suffix string user profile property.
- Last
Name string user profile property.
- Locale string
user profile property.
- Login string
user profile property.
- Manager string
user profile property.
- Manager
Id string user profile property.
- Middle
Name string user profile property.
- Mobile
Phone string user profile property.
- Nick
Name string user profile property.
- Organization string
user profile property.
- Postal
Address string user profile property.
- Preferred
Language string user profile property.
- Primary
Phone string user profile property.
- Profile
Url string user profile property.
- Second
Email string user profile property.
- State string
user profile property.
- Status string
user profile property.
- Street
Address string user profile property.
- Timezone string
user profile property.
- Title string
user profile property.
- User
Type string user profile property.
- Zip
Code string user profile property.
- Admin
Roles []string Administrator roles assigned to user.
- City string
user profile property.
- Cost
Center string user profile property.
- Country
Code string user profile property.
- Custom
Profile stringAttributes raw JSON containing all custom profile attributes.
- Department string
user profile property.
- Display
Name string user profile property.
- Division string
user profile property.
- Email string
user profile property.
- Employee
Number string user profile property.
- First
Name string user profile property.
- Group
Memberships []string user profile property.
- Honorific
Prefix string user profile property.
- Honorific
Suffix string user profile property.
- Last
Name string user profile property.
- Locale string
user profile property.
- Login string
user profile property.
- Manager string
user profile property.
- Manager
Id string user profile property.
- Middle
Name string user profile property.
- Mobile
Phone string user profile property.
- Nick
Name string user profile property.
- Organization string
user profile property.
- Postal
Address string user profile property.
- Preferred
Language string user profile property.
- Primary
Phone string user profile property.
- Profile
Url string user profile property.
- Second
Email string user profile property.
- State string
user profile property.
- Status string
user profile property.
- Street
Address string user profile property.
- Timezone string
user profile property.
- Title string
user profile property.
- User
Type string user profile property.
- Zip
Code string user profile property.
- admin
Roles string[] Administrator roles assigned to user.
- city string
user profile property.
- cost
Center string user profile property.
- country
Code string user profile property.
- custom
Profile stringAttributes raw JSON containing all custom profile attributes.
- department string
user profile property.
- display
Name string user profile property.
- division string
user profile property.
- email string
user profile property.
- employee
Number string user profile property.
- first
Name string user profile property.
- group
Memberships string[] user profile property.
- honorific
Prefix string user profile property.
- honorific
Suffix string user profile property.
- last
Name string user profile property.
- locale string
user profile property.
- login string
user profile property.
- manager string
user profile property.
- manager
Id string user profile property.
- middle
Name string user profile property.
- mobile
Phone string user profile property.
- nick
Name string user profile property.
- organization string
user profile property.
- postal
Address string user profile property.
- preferred
Language string user profile property.
- primary
Phone string user profile property.
- profile
Url string user profile property.
- second
Email string user profile property.
- state string
user profile property.
- status string
user profile property.
- street
Address string user profile property.
- timezone string
user profile property.
- title string
user profile property.
- user
Type string user profile property.
- zip
Code string user profile property.
- admin_
roles List[str] Administrator roles assigned to user.
- city str
user profile property.
- cost_
center str user profile property.
- country_
code str user profile property.
- custom_
profile_ strattributes raw JSON containing all custom profile attributes.
- department str
user profile property.
- display_
name str user profile property.
- division str
user profile property.
- email str
user profile property.
- employee_
number str user profile property.
- first_
name str user profile property.
- group_
memberships List[str] user profile property.
- honorific_
prefix str user profile property.
- honorific_
suffix str user profile property.
- last_
name str user profile property.
- locale str
user profile property.
- login str
user profile property.
- manager str
user profile property.
- manager_
id str user profile property.
- middle_
name str user profile property.
- mobile_
phone str user profile property.
- nick_
name str user profile property.
- organization str
user profile property.
- postal_
address str user profile property.
- preferred_
language str user profile property.
- primary_
phone str user profile property.
- profile_
url str user profile property.
- second_
email str user profile property.
- state str
user profile property.
- status str
user profile property.
- street_
address str user profile property.
- timezone str
user profile property.
- title str
user profile property.
- user_
type str user profile property.
- zip_
code str user profile property.
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.