Retrieve App Users
List App Users For User
client.Apps.Users.GetAppUsers(ctx, userID, params) (*ExpandedarrayListarrayNextPageTokenstringAppUserGetAppUsersResponse, error)
get/api/v1/apps/{app_id}/users/{user_id}/app_users
Invokes the c1.api.app.v1.AppUserService.ListAppUsersForUser method.
Parameters
userIDstring
The userId field.
paramsAppIDfieldPageSizefieldPageTokenfieldAppUserGetAppUsersParams
Returns
AppUserGetAppUsersResponsestruct
The AppUsersForUserServiceListResponse message.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Apps.Users.GetAppUsers(
context.TODO(),
"user_id",
conductoronesdk.AppUserGetAppUsersParams{
AppID: "app_id",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Expanded)
}
200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"appPath": "appPath",
"appUser": {
"appUserType": "APP_USER_TYPE_UNSPECIFIED",
"status": {}
},
"identityUserPath": "identityUserPath",
"lastUsagePath": "lastUsagePath"
}
],
"nextPageToken": "nextPageToken"
}