Access Policies

Quick Navigation

GET AccessPolicies

Returns a list of Password Safe Access Policies.

Password Safe Role Management (Read)

None

Content-Type: application/json

[
    {
        AccessPolicyID:int,
        Name:string,
        Description:string,
        Schedules :
        [
            {
                ScheduleID : int,
                RequireReason : bool,
                RequireTicketSystem : bool,
                TicketSystemID : short?,
                AccessTypes :
                [
                    {
                        AccessType : string,
                        IsSession : bool,
                        RecordSession : bool,
                        MinApprovers : int,
                        MaxConcurrent : int
                    },
                    …
                ]
            },
            …
        ]
    },
    …
]

200 - Request successful. Access Policies in response body.

For more information, please see Common Response Codes.

POST AccessPolicies/Test

Tests access to a Managed Account and returns a list of Password Safe Access Policies that are available in the request window.

Requestor Role

Content-Type: application/json

{
    SystemId: int, 
    AccountId: int, 
    DurationMinutes : int
}

Content-Type: application/json

[
    {
        AccessPolicyID:int,
        Name:string,
        Description:string,
        Schedules :
        [
            {
                ScheduleID : int,
                RequireReason : bool,
                RequireTicketSystem : bool,
                TicketSystemID : short?,
                AccessTypes :
                [
                    {
                        AccessType : string,
                        IsSession : bool,
                        RecordSession : bool,
                        MinApprovers : int,
                        MaxConcurrent : int
                    },
                    …
                ]
            },
            …
        ]
    },
    …
]
  • 200 - Request successful. Access Policies in response body.
  • 403 - User does not have permissions to request the indicated account or the account does not have API access enabled. Response body contains a status code indicating the reason for this forbidden access:
    • 4031 - User does not have permission to request the account or the account is not valid for the system.

For more information, please see Common Response Codes.