Method | HTTP request |
---|---|
delete | DELETE /v2/security/users/{userId} |
get | GET /v2/security/users/{userId} |
get_current | GET /v2/security/users/getCurrent |
list | GET /v2/security/users |
page | GET /v2/security/users |
profile_picture | GET /v2/security/users/{userId}/profilePicture |
search | POST /v2/security/users/search |
Deletes the given User
Name | Type | Description | Notes |
---|---|---|---|
user_id | PrincipalId | userId | |
preview | Optional[PreviewMode] | preview | [optional] |
None
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# PrincipalId | userId
user_id = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.security.User.delete(
user_id,
preview=preview,
)
print("The delete response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling User.delete: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
204 | None | None |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get the User
Name | Type | Description | Notes |
---|---|---|---|
user_id | PrincipalId | userId | |
preview | Optional[PreviewMode] | preview | [optional] |
User
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# PrincipalId | userId
user_id = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.security.User.get(
user_id,
preview=preview,
)
print("The get response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling User.get: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | User | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Name | Type | Description | Notes |
---|---|---|---|
preview | Optional[PreviewMode] | preview | [optional] |
User
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.security.User.get_current(
preview=preview,
)
print("The get_current response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling User.get_current: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | User | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lists all Users
Name | Type | Description | Notes |
---|---|---|---|
page_size | Optional[PageSize] | pageSize | [optional] |
preview | Optional[PreviewMode] | preview | [optional] |
ResourceIterator[User]
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# Optional[PageSize] | pageSize
page_size = None
# Optional[PreviewMode] | preview
preview = None
try:
for user in foundry_client.security.User.list(
page_size=page_size,
preview=preview,
):
pprint(user)
except PalantirRPCException as e:
print("HTTP error when calling User.list: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ListUsersResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Lists all Users
Name | Type | Description | Notes |
---|---|---|---|
page_size | Optional[PageSize] | pageSize | [optional] |
page_token | Optional[PageToken] | pageToken | [optional] |
preview | Optional[PreviewMode] | preview | [optional] |
ListUsersResponse
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# Optional[PageSize] | pageSize
page_size = None
# Optional[PageToken] | pageToken
page_token = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.security.User.page(
page_size=page_size,
page_token=page_token,
preview=preview,
)
print("The page response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling User.page: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | ListUsersResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Name | Type | Description | Notes |
---|---|---|---|
user_id | PrincipalId | userId | |
preview | Optional[PreviewMode] | preview | [optional] |
bytes
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# PrincipalId | userId
user_id = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.security.User.profile_picture(
user_id,
preview=preview,
)
print("The profile_picture response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling User.profile_picture: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | bytes | application/octet-stream |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Name | Type | Description | Notes |
---|---|---|---|
search_users_request | Union[SearchUsersRequest, SearchUsersRequestDict] | Body of the request | |
preview | Optional[PreviewMode] | preview | [optional] |
SearchUsersResponse
from foundry import FoundryClient
from foundry import PalantirRPCException
from pprint import pprint
foundry_client = FoundryClient(
auth=foundry.UserTokenAuth(...), hostname="example.palantirfoundry.com"
)
# Union[SearchUsersRequest, SearchUsersRequestDict] | Body of the request
search_users_request = None
# Optional[PreviewMode] | preview
preview = None
try:
api_response = foundry_client.security.User.search(
search_users_request,
preview=preview,
)
print("The search response:\n")
pprint(api_response)
except PalantirRPCException as e:
print("HTTP error when calling User.search: %s\n" % e)
See README
Status Code | Type | Description | Content Type |
---|---|---|---|
200 | SearchUsersResponse | application/json |
[Back to top] [Back to API list] [Back to Model list] [Back to README]