Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Admin Organizations
Official extension
Version: 1.1.0
Latest version: 1.x

This is a admin application for managing Roles and Permissions for organizations on a B2B Store.

Usage

Install latest version of this app, then you can see the features in admin view.

vtex install vtex.admin-organizations@1.x

Prerequisites

In order to run this application following master data schemas should be created. Use MASTER DATA API - V2 in vtex api documentation to create those schemas (https://developers.vtex.com/reference#master-data-api-v2-overview)

These schemas are shared among several applications admin-organizations, organizations-challenge and organizations, therefore if you have already created these schemas you can ignore this step

Data Entity Name: BusinessPermission Schema Name: business-permission-schema-v1 { "properties": { "name": { "type": "string" }, "label": { "type": "string" } }, "v-default-fields": [ "name", "label", "id" ], "required": [ "name" ], "v-indexed": [ "name" ], "v-security": { "allowGetAll": true, "publicRead": [ "name", "label", "id" ], "publicWrite": [ "name", "label" ], "publicFilter": [ "name", "id" ] } }
Data Entity Name: BusinessRole Schema Name: business-role-schema-v1 { "properties": { "name": { "type": "string" }, "label": { "type": "string" }, "permissions": { "type": "string" } }, "definitions": { "permission": { "type": "string" } }, "v-default-fields": [ "name", "label", "id", "permissions" ], "required": [ "name" ], "v-indexed": [ "name" ], "v-security": { "allowGetAll": true, "publicRead": [ "name", "label", "permissions", "id" ], "publicWrite": [ "name", "label", "permissions" ], "publicFilter": [ "name", "id" ] } }

Add Required roles

You will need manager role to be created for fully functioning other related applications Use label as Manager and name as manager to create Manager role

See also
VTEX App Store
VTEX IO Apps
Usage