Edit

Get a security group member with the automation API

Get the properties and relationships of a security group member in Business Central.

HTTP request

Replace the URL prefix for Business Central depending on environment following the guideline.

GET /microsoft/automation/v2.0/companies({companyId})/securityGroupMembers(securityGroupCode='{securityGroupCode}',userSecurityId={userSecurityId})

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a securityGroupMember object in the response body.

Example

Request

Here's an example of the request.

GET https://api.businesscentral.dynamics.com/v2.0/{environment name}/api/microsoft/automation/v2.0/companies({companyId})/securityGroupMembers(securityGroupCode='{securityGroupCode}',userSecurityId={userSecurityId})

Response

Here's an example of the response.

{
    "securityGroupCode": "FINANCE",
    "userSecurityId": "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb",
    "securityGroupName": "Finance",
    "userName": "alex@contoso.com",
    "userFullName": "Alex Wilber"
}

Tips for working with the APIs
Security group member