Skip to content

Commit

Permalink
DEVDOCS-10379 - adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
karissarjacobsen committed Aug 9, 2023
1 parent de2a334 commit 5164ec3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public function __construct()
);
exit;
}


#ds-snippet-start:Admin9Step3
$permissionProfilesApi = $this->clientService->permProfilesApi();

$getUserProductPermissionProfilesByEmailOptions = new GetUserProductPermissionProfilesByEmailOptions();
Expand All @@ -62,6 +63,7 @@ public function __construct()
$this->args["account_id"],
$getUserProductPermissionProfilesByEmailOptions
);
#ds-snippet-end:Admin9Step3

parent::controller(
$this->preparePageProperties($userProductPermissionProfilesResponse)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ public static function deleteUserProductPermissionProfile(
string $emailAddress,
string $productId
): RemoveUserProductsResponse {
#ds-snippet-start:Admin9Step4
$userProductProfileDeleteRequest = new UserProductProfileDeleteRequest([
'user_email' => $emailAddress,
'product_ids' => [$productId],
]);
#ds-snippet-end:Admin9Step4

#ds-snippet-start:Admin9Step5
return $productPermissionProfilesApi->removeUserProductPermission(
$organizationId,
$accountId,
$userProductProfileDeleteRequest
);
#ds-snippet-end:Admin9Step5
}
}

0 comments on commit 5164ec3

Please sign in to comment.