Skip to content

Latest commit

 

History

History
100 lines (63 loc) · 3.15 KB

UserPolicyManagementApi.md

File metadata and controls

100 lines (63 loc) · 3.15 KB

UserPolicyManagementApi

All URIs are relative to https://sandbox-iam.us.hypto.com/v1

Method HTTP request Description
attachPolicies PATCH /organizations/{organization_id}/users/{user_name}/attach_policies Attach policies to user
detachPolicies PATCH /organizations/{organization_id}/users/{user_name}/detach_policies Detach policies from user
getUserPolicies GET /organizations/{organization_id}/users/{user_name}/policies List all policies associated with user

attachPolicies

BaseSuccessResponse attachPolicies(user_name, organization_id, PolicyAssociationRequest)

Attach policies to user

Attach policies to user

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]
PolicyAssociationRequest PolicyAssociationRequest Payload to attach / detach a policy to a user / resource

Return type

BaseSuccessResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

detachPolicies

BaseSuccessResponse detachPolicies(user_name, organization_id, PolicyAssociationRequest)

Detach policies from user

Detach policies from user

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]
PolicyAssociationRequest PolicyAssociationRequest Payload to attach / detach a policy to a user / resource

Return type

BaseSuccessResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

getUserPolicies

PolicyPaginatedResponse getUserPolicies(user_name, organization_id, nextToken, pageSize, sortOrder)

List all policies associated with user

List all policies associated with user

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]
nextToken String [optional] [default to null]
pageSize String [optional] [default to null]
sortOrder String [optional] [default to null] [enum: asc, desc]

Return type

PolicyPaginatedResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json