CURL.SetOptionSASLAuthZID
-------------------------

Sets the authorisation identity (identity to act as).

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [9.4](newinversion94.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionSASLAuthZID"; curl; Value ) 

**MBS**( **"CURL.SetOptionSASLAuthZID";** /\* Sets the authorisation identity (identity to act as). \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The new authorisation identity. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The new authorisation identity. |  |

### Result

Returns OK or error.

### Description

Sets the authorisation identity (identity to act as).  
Pass a text as parameter, which should be pointing to the authorisation identity (authzid) for the transfer. Only applicable to the PLAIN SASL authentication mechanism where it is optional.  
When not specified only the authentication identity (authcid) as specified by the username will be sent to the server, along with the password. The server will derive a authzid from the authcid when not provided, which it will then uses internally.  
When the authzid is specified, the use of which is server dependent, it can be used to access another user's inbox, that the user has been granted access to, or a shared mailbox for example.  
See also [SASL\_AUTHZID](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html) option in CURL manual.

### See also

- [CURL.SetOptionFTPSSLAuth](CURLSetOptionFTPSSLAuth.md)
- [CURL.SetOptionSSHAuthTypes](CURLSetOptionSSHAuthTypes.md)
- [CURL.SetOptionSSLOptions](CURLSetOptionSSLOptions.md)
- [CURL.SetOptionTLSAuthType](CURLSetOptionTLSAuthType.md)

### Release notes

- **Version 9.4**
    - Added [CURL.SetOptionSASLAuthZID](http://www.mbsplugins.eu/CURLSetOptionSASLAuthZID.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 9.4pr7](https://www.mbsplugins.de/archive/2019-09-12/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

Created 11st September 2019 , last changed 11st September 2019

  
[CURL.SetOptionResumeFrom](CURLSetOptionResumeFrom.md) - [CURL.SetOptionSASLIR](CURLSetOptionSASLIR.md)

[HTML Version](CURLSetOptionSASLAuthZID.shtml)