Share point folder creation and permssion enabling from sql DB

HI all

The requirement is to create a folder structure in a share point and provide permission(like read write permission) also, but the input will be form sql DB , has anyone met with a similar requirement Before please help.thanks in advance :slight_smile: