--- id: access-request-item title: AccessRequestItem pagination_label: AccessRequestItem sidebar_label: AccessRequestItem sidebar_class_name: gosdk keywords: ['go', 'Golang', 'sdk', 'AccessRequestItem', 'AccessRequestItem'] slug: /tools/sdk/go/v3/models/access-request-item tags: ['SDK', 'Software Development Kit', 'AccessRequestItem', 'AccessRequestItem'] --- # AccessRequestItem ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | The type of the item being requested. | **Id** | **string** | ID of Role, Access Profile or Entitlement being requested. | **Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date and time the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date-time in the future. * The current SLA for the deprovisioning is 24 hours. * This date-time can be used to change the duration of an existing access item assignment for the specified identity. A GRANT_ACCESS request can extend duration or even remove an expiration date, and either a GRANT_ACCESS or REVOKE_ACCESS request can reduce duration or add an expiration date where one has not previously been present. You can change the expiration date in requests for yourself or others you are authorized to request for. | [optional] **AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] **NativeIdentity** | Pointer to **NullableString** | The unique identifier for an account on the identity, designated as the account ID attribute in the source's account schema. This is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] ## Methods ### NewAccessRequestItem `func NewAccessRequestItem(type_ string, id string, ) *AccessRequestItem` NewAccessRequestItem instantiates a new AccessRequestItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed ### NewAccessRequestItemWithDefaults `func NewAccessRequestItemWithDefaults() *AccessRequestItem` NewAccessRequestItemWithDefaults instantiates a new AccessRequestItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType `func (o *AccessRequestItem) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk `func (o *AccessRequestItem) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType `func (o *AccessRequestItem) SetType(v string)` SetType sets Type field to given value. ### GetId `func (o *AccessRequestItem) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk `func (o *AccessRequestItem) GetIdOk() (*string, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId `func (o *AccessRequestItem) SetId(v string)` SetId sets Id field to given value. ### GetComment `func (o *AccessRequestItem) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk `func (o *AccessRequestItem) GetCommentOk() (*string, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment `func (o *AccessRequestItem) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment `func (o *AccessRequestItem) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetClientMetadata `func (o *AccessRequestItem) GetClientMetadata() map[string]string` GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. ### GetClientMetadataOk `func (o *AccessRequestItem) GetClientMetadataOk() (*map[string]string, bool)` GetClientMetadataOk returns a tuple with the ClientMetadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetClientMetadata `func (o *AccessRequestItem) SetClientMetadata(v map[string]string)` SetClientMetadata sets ClientMetadata field to given value. ### HasClientMetadata `func (o *AccessRequestItem) HasClientMetadata() bool` HasClientMetadata returns a boolean if a field has been set. ### GetRemoveDate `func (o *AccessRequestItem) GetRemoveDate() SailPointTime` GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. ### GetRemoveDateOk `func (o *AccessRequestItem) GetRemoveDateOk() (*SailPointTime, bool)` GetRemoveDateOk returns a tuple with the RemoveDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRemoveDate `func (o *AccessRequestItem) SetRemoveDate(v SailPointTime)` SetRemoveDate sets RemoveDate field to given value. ### HasRemoveDate `func (o *AccessRequestItem) HasRemoveDate() bool` HasRemoveDate returns a boolean if a field has been set. ### GetAssignmentId `func (o *AccessRequestItem) GetAssignmentId() string` GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. ### GetAssignmentIdOk `func (o *AccessRequestItem) GetAssignmentIdOk() (*string, bool)` GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAssignmentId `func (o *AccessRequestItem) SetAssignmentId(v string)` SetAssignmentId sets AssignmentId field to given value. ### HasAssignmentId `func (o *AccessRequestItem) HasAssignmentId() bool` HasAssignmentId returns a boolean if a field has been set. ### SetAssignmentIdNil `func (o *AccessRequestItem) SetAssignmentIdNil(b bool)` SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil ### UnsetAssignmentId `func (o *AccessRequestItem) UnsetAssignmentId()` UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil ### GetNativeIdentity `func (o *AccessRequestItem) GetNativeIdentity() string` GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. ### GetNativeIdentityOk `func (o *AccessRequestItem) GetNativeIdentityOk() (*string, bool)` GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetNativeIdentity `func (o *AccessRequestItem) SetNativeIdentity(v string)` SetNativeIdentity sets NativeIdentity field to given value. ### HasNativeIdentity `func (o *AccessRequestItem) HasNativeIdentity() bool` HasNativeIdentity returns a boolean if a field has been set. ### SetNativeIdentityNil `func (o *AccessRequestItem) SetNativeIdentityNil(b bool)` SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil ### UnsetNativeIdentity `func (o *AccessRequestItem) UnsetNativeIdentity()` UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil