docs: def permission_table(user_permissions, all_permissions):
      """Creates a table of available permissions"""
  
      table = formatting.Table(['Description', 'KeyName', 'Assigned'])
      table.align['KeyName'] = 'l'
      table.align['Description'] = 'l'
      table.align['Assigned'] = 'l'
      for perm in all_permissions:
          assigned = user_permissions.get(perm['keyName'], False)
          table.add_row([perm['name'], perm['keyName'], assigned])
      return table